ソースを参照

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

Fix X11 Editor Boot Splash (Maximized Boot Splash)
Juan Linietsky 10 年 前
コミット
4a8bc25f18
1 ファイル変更6 行追加0 行削除
  1. 6 0
      platform/x11/os_x11.cpp

+ 6 - 0
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 {