summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-10-17 10:12:34 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-10-17 10:12:34 -0300
commit4a8bc25f18083c7b963ab42911c55856eededf16 (patch)
tree46832325f1821e2ed6abe564f7fe223a534a3ce8 /platform/x11
parent5a14b89c32dbbba6d74ebcf55ea046e367519e74 (diff)
parent3c466afb68eeca60f09950680d7eec58471b6882 (diff)
Merge pull request #2485 from masoudbh3/fix-x11-editor-boot-splash
Fix X11 Editor Boot Splash (Maximized Boot Splash)
Diffstat (limited to 'platform/x11')
-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 fe15dd5a08..49c434815b 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 {