Properly discard filtered events by XFilterEvent()

According to https://www.x.org/releases/current/doc/man/man3/XFilterEvent.3.xhtml,
an event should be discarded if XFilterEvent returns `True`. Fix #1794.
This commit is contained in:
Recursive G 2021-10-05 22:30:52 -05:00
parent 6ed5294223
commit 679106e8b0
No known key found for this signature in database
GPG Key ID: B05475C675632AC7

View File

@ -1163,6 +1163,10 @@ static void processEvent(XEvent *event)
keycode = event->xkey.keycode; keycode = event->xkey.keycode;
filtered = XFilterEvent(event, None); filtered = XFilterEvent(event, None);
if (filtered)
{
return;
}
if (_glfw.x11.randr.available) if (_glfw.x11.randr.available)
{ {