[PATCH 14/21] dix: compare the grab type, not the tempGrab type

Peter Hutterer peter.hutterer at who-t.net
Thu Dec 8 19:36:15 PST 2011


No functional change. To get here, GrabMatchesSecond() needs to be TRUE and
for that the two grab types must be identical.

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

diff --git a/dix/events.c b/dix/events.c
index e94001a..349d9b4 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -3816,7 +3816,7 @@ CheckPassiveGrab(DeviceIntPtr device, GrabPtr grab, InternalEvent *event,
            Since XGrabDeviceButton requires to specify the
            modifierDevice explicitly, we don't override this choice.
          */
-        if (tempGrab->type < GenericEvent)
+        if (grab->type < GenericEvent)
         {
             grab->device = device;
             grab->modifierDevice = GetMaster(device, MASTER_KEYBOARD);
-- 
1.7.7.1



More information about the xorg-devel mailing list