Fix restoring window from fullscreen to normal on Linux

(cherry picked from commit 8737269275)
This commit is contained in:
Yuri Roubinsky 2020-02-03 17:15:24 +03:00 committed by Rémi Verschelde
parent dc20acd4fc
commit 8c689f7d4a
1 changed files with 1 additions and 1 deletions

View File

@ -1429,7 +1429,7 @@ void OS_X11::set_window_fullscreen(bool p_enabled) {
set_window_maximized(true); set_window_maximized(true);
} }
set_wm_fullscreen(p_enabled); set_wm_fullscreen(p_enabled);
if (!p_enabled && !current_videomode.always_on_top) { if (!p_enabled && current_videomode.always_on_top) {
// Restore // Restore
set_window_maximized(false); set_window_maximized(false);
} }