Explicitly handle the empty events on X11

This commit is contained in:
Kovid Goyal 2019-02-26 09:11:53 +05:30
parent f10c65f1bf
commit 1902d8bb19
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

10
glfw/x11_window.c vendored
View File

@ -1071,7 +1071,6 @@ static void onConfigChange()
static void processEvent(XEvent *event)
{
_GLFWwindow* window = NULL;
Bool filtered = False;
if (_glfw.x11.randr.available)
{
@ -1163,6 +1162,12 @@ static void processEvent(XEvent *event)
return;
}
if (event->type == ClientMessage && event->xclient.message_type == _glfw.x11.NULL_ && event->xproperty.window == _glfw.x11.helperWindowHandle)
{
// empty event generated by _glfwPlatformPostEmptyEvent
return;
}
if (XFindContext(_glfw.x11.display,
event->xany.window,
_glfw.x11.context,
@ -1386,9 +1391,6 @@ static void processEvent(XEvent *event)
{
// Custom client message, probably from the window manager
if (filtered)
return;
if (event->xclient.message_type == None)
return;