Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix X11 maximized always-on-top window unmaximizing when always on top disabled

Cyril Bisseybb4c0b080505
diff --git a/platform/linuxbsd/x11/display_server_x11.cpp b/platform/linuxbsd/x11/display_server_x11.cpp
index 0dd403e880b..d2402c01b15 100644
--- a/platform/linuxbsd/x11/display_server_x11.cpp
+++ b/platform/linuxbsd/x11/display_server_x11.cpp
@@ -3399,7 +3399,7 @@ void DisplayServerX11::window_set_flag(DisplayServerEnums::WindowFlags p_flag, b
xev.data.l[3] = 1;
XSendEvent(x11_display, DefaultRootWindow(x11_display), False, SubstructureRedirectMask | SubstructureNotifyMask, (XEvent *)&xev);
- if (!p_enabled && !wd.fullscreen) {
+ if (!p_enabled && !wd.fullscreen && !wd.maximized) {
_set_wm_maximized(p_window, false);
}
wd.on_top = p_enabled;