diff options
| author | Juan Linietsky | 2015-10-17 10:12:34 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-10-17 10:12:34 -0300 |
| commit | 4a8bc25f18083c7b963ab42911c55856eededf16 (patch) | |
| tree | 46832325f1821e2ed6abe564f7fe223a534a3ce8 /platform | |
| parent | 5a14b89c32dbbba6d74ebcf55ea046e367519e74 (diff) | |
| parent | 3c466afb68eeca60f09950680d7eec58471b6882 (diff) | |
| download | godot-4a8bc25f18083c7b963ab42911c55856eededf16.tar.gz godot-4a8bc25f18083c7b963ab42911c55856eededf16.tar.zst godot-4a8bc25f18083c7b963ab42911c55856eededf16.zip | |
Merge pull request #2485 from masoudbh3/fix-x11-editor-boot-splash
Fix X11 Editor Boot Splash (Maximized Boot Splash)
Diffstat (limited to 'platform')
| -rw-r--r-- | platform/x11/os_x11.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index fe15dd5a0..49c434815 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 { |
