diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-02 09:06:05 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-06 13:17:43 +1000 |
commit | c1bf65b89f4e361f6178a73dd5334c8f2bd95732 (patch) | |
tree | 542323263ff3c88c734c534576ef8e5fe8933ea4 | |
parent | 38f9054554d63525d2dd51aafb5eb57821158ab9 (diff) |
XWindowEvent/XCheckWindowEvent must not return GenericEvents.
GenericEvents have no fixed position for the window, so they must be treated
like extension events.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/ChkWinEv.c | 2 | ||||
-rw-r--r-- | src/WinEvent.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ChkWinEv.c b/src/ChkWinEv.c index 42720e45..1fd975cd 100644 --- a/src/ChkWinEv.c +++ b/src/ChkWinEv.c @@ -60,7 +60,7 @@ Bool XCheckWindowEvent ( qelt; prev = qelt, qelt = qelt->next) { if ((qelt->event.xany.window == w) && - (qelt->event.type < LASTEvent) && + (qelt->event.type < GenericEvent) && (_Xevent_to_mask[qelt->event.type] & mask) && ((qelt->event.type != MotionNotify) || (mask & AllPointers) || diff --git a/src/WinEvent.c b/src/WinEvent.c index 7662609c..c6daf2a8 100644 --- a/src/WinEvent.c +++ b/src/WinEvent.c @@ -62,7 +62,7 @@ XWindowEvent ( qelt; prev = qelt, qelt = qelt->next) { if ((qelt->event.xany.window == w) && - (qelt->event.type < LASTEvent) && + (qelt->event.type < GenericEvent) && (_Xevent_to_mask[qelt->event.type] & mask) && ((qelt->event.type != MotionNotify) || (mask & AllPointers) || |