From 81e1801ef0d61fe4e29db8b352b1fadff75503fb Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 19 Aug 2022 17:14:21 -0400 Subject: poll events just after startup --- main.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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(); -- cgit v1.2.3