Explicitly handle the empty events on X11
This commit is contained in:
parent
f10c65f1bf
commit
1902d8bb19
10
glfw/x11_window.c
vendored
10
glfw/x11_window.c
vendored
@ -1071,7 +1071,6 @@ static void onConfigChange()
|
|||||||
static void processEvent(XEvent *event)
|
static void processEvent(XEvent *event)
|
||||||
{
|
{
|
||||||
_GLFWwindow* window = NULL;
|
_GLFWwindow* window = NULL;
|
||||||
Bool filtered = False;
|
|
||||||
|
|
||||||
if (_glfw.x11.randr.available)
|
if (_glfw.x11.randr.available)
|
||||||
{
|
{
|
||||||
@ -1163,6 +1162,12 @@ static void processEvent(XEvent *event)
|
|||||||
return;
|
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,
|
if (XFindContext(_glfw.x11.display,
|
||||||
event->xany.window,
|
event->xany.window,
|
||||||
_glfw.x11.context,
|
_glfw.x11.context,
|
||||||
@ -1386,9 +1391,6 @@ static void processEvent(XEvent *event)
|
|||||||
{
|
{
|
||||||
// Custom client message, probably from the window manager
|
// Custom client message, probably from the window manager
|
||||||
|
|
||||||
if (filtered)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (event->xclient.message_type == None)
|
if (event->xclient.message_type == None)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user