diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-12-07 13:54:28 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-12-13 13:24:08 +1000 |
commit | 97d79dd740ed1ac4eb02b0d4135850f953716278 (patch) | |
tree | f01955b281150392397317ccb0e73f6db4a1ee10 | |
parent | b9d6ae42b686287d7d23c2eefe2b12da98fe6ff8 (diff) |
dix: compare the grab type, not the tempGrab type
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@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
-rw-r--r-- | dix/events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/events.c b/dix/events.c index e94001aec..349d9b4e7 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); |