summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authormasoud bh <masoud.bh@chmail.ir>2015-09-17 05:19:43 +0430
committermasoud bh <masoud.bh@chmail.ir>2015-09-17 05:19:43 +0430
commit3c466afb68eeca60f09950680d7eec58471b6882 (patch)
tree08d0e3751d581b78b77f69da60db2b928912c735 /platform
parent889d21e0049a0e84d6d44db9b80193f93fd62f17 (diff)
Fix X11 Editor Boot Splash
Diffstat (limited to 'platform')
-rw-r--r--platform/x11/os_x11.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp
index 51f4392eb4..ef808c54fb 100644
--- a/platform/x11/os_x11.cpp
+++ b/platform/x11/os_x11.cpp
@@ -892,7 +892,13 @@ void OS_X11::set_window_maximized(bool p_enabled) {
XSendEvent(x11_display, DefaultRootWindow(x11_display), False, SubstructureRedirectMask | SubstructureNotifyMask, &xev);
+ XWindowAttributes xwa;
+ XGetWindowAttributes(x11_display,DefaultRootWindow(x11_display),&xwa);
+ current_videomode.width = xwa.width;
+ current_videomode.height = xwa.height;
+
maximized = p_enabled;
+ visual_server->init();
}
bool OS_X11::is_window_maximized() const {