summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-08-19 17:14:21 -0400
committerpommicket <pommicket@gmail.com>2022-08-19 17:14:44 -0400
commit81e1801ef0d61fe4e29db8b352b1fadff75503fb (patch)
treea3973203cc77698239d07b3f5b2c3a237641ac6e /main.c
parent2fd1c35904e74c258391a839dfdefd9d0d72fef7 (diff)
poll events just after startup
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.c b/main.c
index ece1e94..1687099 100644
--- a/main.c
+++ b/main.c
@@ -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();