mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Ignore resize events for unfocused windows
This commit is contained in:
@@ -252,7 +252,12 @@ void KeyPoll::Poll()
|
|||||||
{
|
{
|
||||||
/* Window Resize */
|
/* Window Resize */
|
||||||
case SDL_WINDOWEVENT_RESIZED:
|
case SDL_WINDOWEVENT_RESIZED:
|
||||||
|
if (SDL_GetWindowFlags(
|
||||||
|
SDL_GetWindowFromID(evt.window.windowID)
|
||||||
|
) & SDL_WINDOW_INPUT_FOCUS)
|
||||||
|
{
|
||||||
resetWindow = true;
|
resetWindow = true;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Window Focus */
|
/* Window Focus */
|
||||||
|
|||||||
Reference in New Issue
Block a user