From 706868dad83b421703e50cf0c45a5abb672e6d2e Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 6 Sep 2016 15:18:37 +0200 Subject: [PATCH] X11: Make glfwPostEmptyEvent use helper window --- src/x11_window.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/x11_window.c b/src/x11_window.c index d8b41e29..58fbaba6 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -2091,15 +2091,14 @@ void _glfwPlatformWaitEventsTimeout(double timeout) void _glfwPlatformPostEmptyEvent(void) { XEvent event; - _GLFWwindow* window = _glfw.windowListHead; memset(&event, 0, sizeof(event)); event.type = ClientMessage; - event.xclient.window = window->x11.handle; + event.xclient.window = _glfw.x11.helper; event.xclient.format = 32; // Data is 32-bit longs event.xclient.message_type = _glfw.x11.NULL_; - XSendEvent(_glfw.x11.display, window->x11.handle, False, 0, &event); + XSendEvent(_glfw.x11.display, _glfw.x11.helper, False, 0, &event); XFlush(_glfw.x11.display); }