mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 04:54:35 +00:00
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:
parent
6ed5294223
commit
679106e8b0
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user