Explorar el Código

Merge pull request #35882 from Chaosus/fix_x11_window_restoring

Fix restoring window from fullscreen to normal on Linux
Yuri Roubinsky hace 5 años
padre
commit
e5cb4f03c5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
 	}