From 6f3486c4866a0a0e0408c2e0dbd65f128995abf4 Mon Sep 17 00:00:00 2001 From: Enzo Nocera <32960642+AlmightyScientist@users.noreply.github.com> Date: Sun, 24 Dec 2017 00:59:51 +0100 Subject: x11: Fix maximized splash-boot screen bug. Fixes #14336 --- platform/x11/os_x11.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index 6616e47317..f3f4b1f217 100644 --- a/platform/x11/os_x11.cpp +++ b/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); + while (p_enabled && !is_window_maximized()) { + // Wait for effective resizing (so the GLX context is too). + } + maximized = p_enabled; } -- cgit v1.2.3