x11: Workaround window managers that mark fullscreen windows as maximized.
This patch came from Unreal Engine 4's fork of SDL, compliments of Epic Games. --HG-- extra : amend_source : 121efd21a0162ffdb1673fd5af969bcd53eed4c2 extra : histedit_source : 1ce73eb25b5fdf5ce767f6336601442e92bbd69a
This commit is contained in:
parent
9c45fcc0ef
commit
89d34883fe
1 changed files with 6 additions and 0 deletions
|
@ -1108,6 +1108,12 @@ X11_SetWindowFullscreenViaWM(_THIS, SDL_Window * window, SDL_VideoDisplay * _dis
|
|||
}
|
||||
}
|
||||
|
||||
/* Fullscreen windows sometimes end up being marked maximized by
|
||||
window managers. Force it back to how we expect it to be. */
|
||||
if (!fullscreen && (window->flags & SDL_WINDOW_MAXIMIZED) == 0) {
|
||||
SetWindowMaximized(_this, window, SDL_FALSE);
|
||||
}
|
||||
|
||||
X11_XFlush(display);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue