Skip to content

Commit

Permalink
x11: window managers might mark windows as FULLSCREEN _and_ MAXIMIZED.
Browse files Browse the repository at this point in the history
This patch came from Unreal Engine 4's fork of SDL, compliments of Epic Games.
  • Loading branch information
icculus committed Apr 21, 2015
1 parent 9a75279 commit 14e0077
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/video/x11/SDL_x11window.c
Expand Up @@ -207,7 +207,9 @@ X11_GetNetWMState(_THIS, Window xwindow)
}
if (maximized == 3) {
flags |= SDL_WINDOW_MAXIMIZED;
} else if (fullscreen == 1) {
}

if (fullscreen == 1) {
flags |= SDL_WINDOW_FULLSCREEN;
}
X11_XFree(propertyValue);
Expand Down

0 comments on commit 14e0077

Please sign in to comment.