diff options
author | pommicket <pommicket@gmail.com> | 2022-08-19 17:14:21 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-08-19 17:14:44 -0400 |
commit | 81e1801ef0d61fe4e29db8b352b1fadff75503fb (patch) | |
tree | a3973203cc77698239d07b3f5b2c3a237641ac6e /main.c | |
parent | 2fd1c35904e74c258391a839dfdefd9d0d72fef7 (diff) |
poll events just after startup
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -545,6 +545,15 @@ int main(int argc, char **argv) { print(" - Read configs: %.1fms\n", 1000 * (configs_end - configs_start)); print(" - Get ready: %.1fms\n", 1000 * (get_ready_end - get_ready_start)); #endif + + { + // clear event queue + // this is probably only a problem for me, but + // some events that the WM should have consumed + // are going to ted + SDL_Event event; + while (SDL_PollEvent(&event)); + } while (!ted->quit) { double frame_start = time_get_seconds(); |