diff options
author | Andreas Haas <Hinsbart@users.noreply.github.com> | 2017-12-24 09:40:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-24 09:40:22 +0000 |
commit | c899583ac1bd9c1c424ec2536988ad0790526eea (patch) | |
tree | 5daed57f3b51b6214206f2877e14c1f89309ed83 | |
parent | 9969c5c6a1cc103fb7b23c279b7fde0d92a5599a (diff) | |
parent | 6f3486c4866a0a0e0408c2e0dbd65f128995abf4 (diff) |
Merge pull request #14993 from AlmightyScientist/issue-14336
X11: Fixes maximized splash-boot screen bug.
-rw-r--r-- | platform/x11/os_x11.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |