summaryrefslogtreecommitdiff
path: root/platform/linuxbsd/display_server_x11.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-03 09:23:36 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-03 09:23:36 +0200
commit5c4d07f952d3431194028a7e052407d61cc3fee7 (patch)
tree6c42121d83df5546b0ca5daf104b73068a313b66 /platform/linuxbsd/display_server_x11.cpp
parentcf6978f2869006ca4203d7dc438c5a99de7347f6 (diff)
parent0f5b448a9c11d6f66942934c4156a87b387356a3 (diff)
Merge pull request #66728 from MatthewZelriche/x11-state-fix
Fix inconsistent window state on X11.
Diffstat (limited to 'platform/linuxbsd/display_server_x11.cpp')
-rw-r--r--platform/linuxbsd/display_server_x11.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/linuxbsd/display_server_x11.cpp b/platform/linuxbsd/display_server_x11.cpp
index 66dea6cf1b..81fc941608 100644
--- a/platform/linuxbsd/display_server_x11.cpp
+++ b/platform/linuxbsd/display_server_x11.cpp
@@ -3142,6 +3142,11 @@ void DisplayServerX11::_window_changed(XEvent *event) {
return;
}
+ // Query display server about a possible new window state.
+ wd.fullscreen = _window_fullscreen_check(window_id);
+ wd.minimized = _window_minimize_check(window_id);
+ wd.maximized = _window_maximize_check(window_id, "_NET_WM_STATE");
+
{
//the position in xconfigure is not useful here, obtain it manually
int x, y;