[PATCH 16/20] mi: update macro to search for MASTER_POINTER

Peter Hutterer peter.hutterer at who-t.net
Thu Feb 17 19:52:23 PST 2011


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 mi/midispcur.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mi/midispcur.c b/mi/midispcur.c
index 48feb88..9b3e87a 100644
--- a/mi/midispcur.c
+++ b/mi/midispcur.c
@@ -76,7 +76,7 @@ typedef struct {
 #define miGetDCDevice(dev, screen) \
  ((DevHasCursor(dev)) ? \
   (miDCBufferPtr)dixLookupScreenPrivate(&dev->devPrivates, miDCDeviceKey, screen) : \
-  (miDCBufferPtr)dixLookupScreenPrivate(&dev->u.master->devPrivates, miDCDeviceKey, screen))
+  (miDCBufferPtr)dixLookupScreenPrivate(&GetMaster(dev, MASTER_POINTER)->devPrivates, miDCDeviceKey, screen))
 
 /* 
  * The core pointer buffer will point to the index of the virtual core pointer
-- 
1.7.4



More information about the xorg-devel mailing list