summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-01-15 11:03:03 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-02-03 11:13:54 +1000
commit412e09e1e37b74421abd4dd9606536d2785da440 (patch)
treef1c64fe5cf7bd1523aa19303dcf22cd3e8afbc61
parent9f3c5d46f81887b2b413b3e6cc9df8282f06522c (diff)
dix: Use GenericEvent instead of LASTEvent to check for core events.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--dix/events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dix/events.c b/dix/events.c
index 17e7142d0..0c8d198b3 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -3256,7 +3256,7 @@ CheckPassiveGrabsOnWindow(
tempGrab.modifierDevice = grab->modifierDevice;
tempGrab.modifiersDetail.exact = xkbi ? xkbi->state.grab_mods : 0;
/* ignore the device for core events when comparing grabs */
- if (GrabMatchesSecond(&tempGrab, grab, (xE->u.u.type < LASTEvent)) &&
+ if (GrabMatchesSecond(&tempGrab, grab, (xE->u.u.type < GenericEvent)) &&
(!grab->confineTo ||
(grab->confineTo->realized &&
BorderSizeNotEmpty(device, grab->confineTo))))
@@ -3271,7 +3271,7 @@ CheckPassiveGrabsOnWindow(
Since XGrabDeviceButton requires to specify the
modifierDevice explicitly, we don't override this choice.
*/
- if (xE->u.u.type < LASTEvent)
+ if (xE->u.u.type < GenericEvent)
{
grab->device = device;
grab->modifierDevice = GetPairedDevice(device);