1
0
Fork 0
spectre/source
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
..
Core Spectre/Core/String: Adding to_string() for signed int. 2020-12-05 15:23:06 +01:00
Display source/Platform/Unix: stub implementation 2020-12-19 18:55:10 +01:00
Game Minor formating fixes. 2019-12-29 22:26:05 +01:00
Graphics Spectre/Graphics/PixelFormat: Rework 2020-11-03 14:23:38 +01: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-12-19 18:55:11 +01:00
Scene Minor formating fixes. 2019-12-29 22:26:05 +01:00
System source/Platform/Unix: stub implementation 2020-12-19 18:55:10 +01:00
Game.cpp source/Platform/Unix: stub implementation 2020-12-19 18:55:10 +01:00