mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Ignore resize events for unfocused windows
This commit is contained in:
parent
39abcfa8d9
commit
47df6c9d66
1 changed files with 6 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue