Windows are not in a minimized state when they are shown
authorSam Lantinga <slouken@libsdl.org>
Wed, 15 May 2019 14:01:15 -0700
changeset 12730792c26401463
parent 12729 a82d3c08d359
child 12731 23fc3ac93cf5
Windows are not in a minimized state when they are shown
This fixes https://github.com/ValveSoftware/steam-for-linux/issues/4313
"Exiting game a in Steam Big Picture Mode gets semi-windowed BPM"
src/events/SDL_windowevents.c
     1.1 --- a/src/events/SDL_windowevents.c	Tue May 14 14:20:54 2019 -0700
     1.2 +++ b/src/events/SDL_windowevents.c	Wed May 15 14:01:15 2019 -0700
     1.3 @@ -84,7 +84,7 @@
     1.4          if (window->flags & SDL_WINDOW_SHOWN) {
     1.5              return 0;
     1.6          }
     1.7 -        window->flags &= ~SDL_WINDOW_HIDDEN;
     1.8 +        window->flags &= ~(SDL_WINDOW_HIDDEN | SDL_WINDOW_MINIMIZED);
     1.9          window->flags |= SDL_WINDOW_SHOWN;
    1.10          SDL_OnWindowShown(window);
    1.11          break;