浏览代码

Fix restoring window from fullscreen to normal on Linux

Yuri Roubinsky 5 年之前
父节点
当前提交
8737269275
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/x11/os_x11.cpp

+ 1 - 1
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);
 	}