mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 06:19:25 +03:00
Ignore resize events for unfocused windows
This commit is contained in:
1 parent
39abcfa8d9
commit
47df6c9d66
1 file changed
+6
-1
@@ -252,7 +252,12 @@ void KeyPoll::Poll()
|
||||
{
|
||||
/* Window Resize */
|
||||
case SDL_WINDOWEVENT_RESIZED:
|
||||
resetWindow = true;
|
||||
if (SDL_GetWindowFlags(
|
||||
SDL_GetWindowFromID(evt.window.windowID)
|
||||
) & SDL_WINDOW_INPUT_FOCUS)
|
||||
{
|
||||
resetWindow = true;
|
||||
}
|
||||
break;
|
||||
|
||||
/* Window Focus */
|
||||
|
||||
Reference in new issue
Block a user