Skip to content

Commit

Permalink
winex11: Process XInput2 events with QS_INPUT filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbernon authored and julliard committed Feb 12, 2024
1 parent e9e8ab1 commit b341688
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions dlls/winex11.drv/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,6 @@ static Bool filter_event( Display *display, XEvent *event, char *arg )
case ButtonPress:
case ButtonRelease:
return (mask & QS_MOUSEBUTTON) != 0;
#ifdef GenericEvent
case GenericEvent:
#endif
case MotionNotify:
case EnterNotify:
case LeaveNotify:
Expand All @@ -250,6 +247,13 @@ static Bool filter_event( Display *display, XEvent *event, char *arg )
case PropertyNotify:
case ClientMessage:
return (mask & QS_POSTMESSAGE) != 0;
#ifdef GenericEvent
case GenericEvent:
#ifdef HAVE_X11_EXTENSIONS_XINPUT2_H
if (event->xcookie.extension == xinput2_opcode) return (mask & QS_INPUT) != 0;
#endif
/* fallthrough */
#endif
default:
return (mask & QS_SENDMESSAGE) != 0;
}
Expand Down

0 comments on commit b341688

Please sign in to comment.