mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-29 21:48:52 -05:00
X11: Make glfwPostEmptyEvent use helper window
This commit is contained in:
parent
3b3a1390ad
commit
706868dad8
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user