Merge pull request #2485 from masoudbh3/fix-x11-editor-boot-splash

Fix X11 Editor Boot Splash (Maximized Boot Splash)
This commit is contained in:
Juan Linietsky 2015-10-17 10:12:34 -03:00
commit 4a8bc25f18
1 changed files with 6 additions and 0 deletions

View File

@ -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 {