x11: window managers might mark windows as FULLSCREEN _and_ MAXIMIZED.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 21 Apr 2015 10:14:17 -0400
changeset 10017363c41b866cd
parent 10016 d565c0f35a92
child 10018 3c1384edf9fa
x11: window managers might mark windows as FULLSCREEN _and_ MAXIMIZED.

This patch came from Unreal Engine 4's fork of SDL, compliments of Epic Games.
src/video/x11/SDL_x11window.c
     1.1 --- a/src/video/x11/SDL_x11window.c	Tue Apr 21 01:22:32 2015 -0400
     1.2 +++ b/src/video/x11/SDL_x11window.c	Tue Apr 21 10:14:17 2015 -0400
     1.3 @@ -207,7 +207,9 @@
     1.4          }
     1.5          if (maximized == 3) {
     1.6              flags |= SDL_WINDOW_MAXIMIZED;
     1.7 -        }  else if (fullscreen == 1) {
     1.8 +        }
     1.9 +
    1.10 +        if (fullscreen == 1) {
    1.11              flags |= SDL_WINDOW_FULLSCREEN;
    1.12          }
    1.13          X11_XFree(propertyValue);