From 8737269275c371c8d56fcb56d783f8df1aaa2b88 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Mon, 3 Feb 2020 17:15:24 +0300 Subject: [PATCH] Fix restoring window from fullscreen to normal on Linux --- platform/x11/os_x11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index 57c7b0594c1..8195006121f 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -1429,7 +1429,7 @@ void OS_X11::set_window_fullscreen(bool p_enabled) { set_window_maximized(true); } set_wm_fullscreen(p_enabled); - if (!p_enabled && !current_videomode.always_on_top) { + if (!p_enabled && current_videomode.always_on_top) { // Restore set_window_maximized(false); }