[PATCH 12/20] Xi: replace a direct master access with GetMaster()

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


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

diff --git a/Xi/exevents.c b/Xi/exevents.c
index ea9daa9..0df6579 100644
--- a/Xi/exevents.c
+++ b/Xi/exevents.c
@@ -869,7 +869,7 @@ UpdateDeviceState(DeviceIntPtr device, DeviceEvent* event)
              * event being delivered through the slave first
              */
             for (sd = inputInfo.devices; sd; sd = sd->next) {
-                if (IsMaster(sd) || sd->u.master != device)
+                if (IsMaster(sd) || GetMaster(sd, MASTER_POINTER) != device)
                     continue;
                 if (!sd->button)
                     continue;
-- 
1.7.4



More information about the xorg-devel mailing list