1
0
Fork 0
spectre/source/Platform
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
..
Unix Platform/Unix/X11EventQueue: Fix bug where messeges where not flushed to the event queue. 2020-12-19 18:55:11 +01:00
Win32 source/Platform/Win32/Win32EventQueue.cpp: change OutputDebugString() to Log::debug() 2020-12-05 15:31:48 +01:00
PlatformApplication.h source/Platform/PlatformApplication.h: remove update(). platform event queue is handled in MessageQueue class. 2020-02-01 15:49:49 +01:00
PlatformDisplay.cpp source/Platform/Unix: stub implementation 2020-12-19 18:55:10 +01:00
PlatformDisplay.h source/Platform/PlatformDisplay.h: add setVisible() to the interface 2020-12-05 15:31:47 +01:00
PlatformEventQueue.h System/SystemEvent: Merge with Input/InputEvent into just Event. 2020-02-01 15:49:59 +01:00
PlatformInput.h Move everything from global namespace to "sp" namespace 2019-09-30 19:10:17 +02:00
PlatformMisc.h Move everything from global namespace to "sp" namespace 2019-09-30 19:10:17 +02:00