1
0
Fork 0
spectre/source/Platform/Unix
Henrik Hautakoski 7356bdebdd Platform/Unix/X11EventQueue: Fix bug where messeges where not flushed to the event queue.
XEventsQueued(disp, QueuedAlready) only returns the number of events currently in the queue and
does not flush new events. So this must happen elsewhere and if it does not we
will never see any events. i noticed this bug when removing the call to glXSwapBuffers().

Fix this by using XPending() instead as this flushes new events
if the queue is empty before returning the length.

see https://tronche.com/gui/x/xlib/event-handling/XEventsQueued.html
and https://tronche.com/gui/x/xlib/event-handling/XPending.html
2020-12-19 18:55:11 +01:00
..
glad_glx.c Adding glad GLX 2020-12-19 18:55:10 +01:00
glad_glx.h Adding glad GLX 2020-12-19 18:55:10 +01:00
GLXContext.cpp source/Platform/Unix/GLXContext: Initial implementation 2020-12-19 18:55:10 +01:00
GLXContext.h source/Platform/Unix/GLXContext: Initial implementation 2020-12-19 18:55:10 +01:00
UnixApplication.cpp source/Platform/Unix: stub implementation 2020-12-19 18:55:10 +01:00
UnixApplication.h source/Platform/Unix: stub implementation 2020-12-19 18:55:10 +01:00
UnixMisc.cpp source/Platform/Unix: stub implementation 2020-12-19 18:55:10 +01:00
UnixSystem.cpp source/Platform/Unix: stub implementation 2020-12-19 18:55:10 +01:00
X11Display.cpp source/Platform/Unix/X11Display.cpp: register with X11WindowEventHandler 2020-12-19 18:55:11 +01:00
X11Display.h Platform/Unix/X11Display.h: Some documentation. 2020-12-19 18:55:11 +01:00
X11EventQueue.cpp Platform/Unix/X11EventQueue: Fix bug where messeges where not flushed to the event queue. 2020-12-19 18:55:11 +01:00
X11EventQueue.h Platform/Unix/X11EventQueue: get and release display handle in constructor/destructor instead of every call to poll() 2020-12-19 18:55:11 +01:00
X11Input.cpp source/Platform/Unix: stub implementation 2020-12-19 18:55:10 +01:00
X11Input.h source/Platform/Unix: stub implementation 2020-12-19 18:55:10 +01:00
X11Keyboard.cpp Platform/Unix/X11Keyboard: Implement handleMessage() 2020-12-19 18:55:11 +01:00
X11Keyboard.h Platform/Unix/X11Keyboard: Implement handleMessage() 2020-12-19 18:55:11 +01:00
X11Mouse.cpp source/Platform/Unix: stub implementation 2020-12-19 18:55:10 +01:00
X11Mouse.h source/Platform/Unix: stub implementation 2020-12-19 18:55:10 +01:00
X11SharedDisplay.cpp Platform/Unix/X11SharedDisplay: adding getAtom() 2020-12-19 18:55:10 +01:00
X11SharedDisplay.h Platform/Unix/X11SharedDisplay: adding getAtom() 2020-12-19 18:55:10 +01:00
X11WindowEventHandler.cpp Adding Platform/Unix/X11WindowEventHandler 2020-12-19 18:55:11 +01:00
X11WindowEventHandler.h Adding Platform/Unix/X11WindowEventHandler 2020-12-19 18:55:11 +01:00