mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-06 12:48:06 +02:00
XMaskEvent/XCheckMaskedEvents must not check for GenericEvents.
GenericEvent cannot be selected for in the core event masks and they must thus be treated like extension events. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c1bf65b89f
commit
5d0fe0e0e9
2 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ Bool XCheckMaskEvent (
|
|||
for (qelt = prev ? prev->next : dpy->head;
|
||||
qelt;
|
||||
prev = qelt, qelt = qelt->next) {
|
||||
if ((qelt->event.type < LASTEvent) &&
|
||||
if ((qelt->event.type < GenericEvent) &&
|
||||
(_Xevent_to_mask[qelt->event.type] & mask) &&
|
||||
((qelt->event.type != MotionNotify) ||
|
||||
(mask & AllPointers) ||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ XMaskEvent (
|
|||
for (qelt = prev ? prev->next : dpy->head;
|
||||
qelt;
|
||||
prev = qelt, qelt = qelt->next) {
|
||||
if ((qelt->event.type < LASTEvent) &&
|
||||
if ((qelt->event.type < GenericEvent) &&
|
||||
(_Xevent_to_mask[qelt->event.type] & mask) &&
|
||||
((qelt->event.type != MotionNotify) ||
|
||||
(mask & AllPointers) ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue