From ce33ada2c89c37637e96f5dee179d20a30715bcf Mon Sep 17 00:00:00 2001 From: Clownacy Date: Mon, 2 Sep 2019 22:28:21 +0100 Subject: [PATCH] Fix window focus event handling --- src/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main.cpp b/src/Main.cpp index 502f8d28..5ec60a87 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -562,7 +562,7 @@ BOOL SystemTask(void) break; case SDL_WINDOWEVENT: - switch (event.window.type) + switch (event.window.event) { case SDL_WINDOWEVENT_FOCUS_LOST: InactiveWindow();