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

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); 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; maximized = p_enabled;
visual_server->init();
} }
bool OS_X11::is_window_maximized() const { bool OS_X11::is_window_maximized() const {