Explorar o código

x11: Fix maximized splash-boot screen bug.

Fixes #14336
Enzo Nocera %!s(int64=7) %!d(string=hai) anos
pai
achega
6f3486c486
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      platform/x11/os_x11.cpp

+ 4 - 0
platform/x11/os_x11.cpp

@@ -1050,6 +1050,10 @@ void OS_X11::set_window_maximized(bool p_enabled) {
 
 
 	XSendEvent(x11_display, DefaultRootWindow(x11_display), False, SubstructureRedirectMask | SubstructureNotifyMask, &xev);
 	XSendEvent(x11_display, DefaultRootWindow(x11_display), False, SubstructureRedirectMask | SubstructureNotifyMask, &xev);
 
 
+	while (p_enabled && !is_window_maximized()) {
+		// Wait for effective resizing (so the GLX context is too).
+	}
+
 	maximized = p_enabled;
 	maximized = p_enabled;
 }
 }