aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnzo Nocera2017-12-24 00:59:51 +0100
committerEnzo Nocera2017-12-24 01:16:17 +0100
commit6f3486c4866a0a0e0408c2e0dbd65f128995abf4 (patch)
tree5daed57f3b51b6214206f2877e14c1f89309ed83
parent9969c5c6a1cc103fb7b23c279b7fde0d92a5599a (diff)
downloadgodot-6f3486c4866a0a0e0408c2e0dbd65f128995abf4.tar.gz
godot-6f3486c4866a0a0e0408c2e0dbd65f128995abf4.tar.zst
godot-6f3486c4866a0a0e0408c2e0dbd65f128995abf4.zip
-rw-r--r--platform/x11/os_x11.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp
index 6616e4731..f3f4b1f21 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;
}