1
0
Fork 0
spectre/source/Platform
Henrik Hautakoski cdea7e238c 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-10-16 19:39:27 +02:00
..
Unix Platform/Unix/X11EventQueue: Fix bug where messeges where not flushed to the event queue. 2020-10-16 19:39:27 +02:00
Win32 source/Platform/Win32/Win32GLContext.cpp: no need to have our own wgl extension loader (fixed in latest glad2) 2020-09-21 18:00:08 +02: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-10-16 19:39:26 +02:00
PlatformDisplay.h Minor formating fixes. 2019-12-29 22:26:05 +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