Merge pull request #14993 from AlmightyScientist/issue-14336

X11: Fixes maximized splash-boot screen bug.
This commit is contained in:
Andreas Haas 2017-12-24 09:40:22 +00:00 committed by GitHub
commit c899583ac1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}