1
0
Fork 0
spectre/source
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
..
Core Move everything from global namespace to "sp" namespace 2019-09-30 19:10:17 +02:00
Display source/Platform/Unix: stub implementation 2020-10-16 19:39:26 +02:00
Game Minor formating fixes. 2019-12-29 22:26:05 +01:00
Graphics Merge branch 'maint-platform' into dev 2020-09-24 17:17:12 +02:00
Input include/Spectre/Input/Keyboard.h: remove NumpadEnter (this is usually the same as regular enter). 2020-02-02 00:38:38 +01:00
Math Math/Transform.cpp: use transform/scale/ratation functions from Math.h 2020-02-14 23:31:15 +01:00
Platform Platform/Unix/X11EventQueue: Fix bug where messeges where not flushed to the event queue. 2020-10-16 19:39:27 +02:00
Scene Minor formating fixes. 2019-12-29 22:26:05 +01:00
System source/Platform/Unix: stub implementation 2020-10-16 19:39:26 +02:00
Game.cpp source/Platform/Unix: stub implementation 2020-10-16 19:39:26 +02:00