diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-02-08 11:01:24 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-02-08 11:01:24 +0200 |
commit | 4fcc35bdfa86fa8b39efe1030ed6d40ef36f76a7 (patch) | |
tree | ce54af2636674eaee6627df3d43a3ca899562f22 /platform/linuxbsd/display_server_x11.cpp | |
parent | 0154ce2c8d66528d617e10b139640fd4c4405c6b (diff) |
[X11] Fix decoration reset when returning from fullscreen mode.
Diffstat (limited to 'platform/linuxbsd/display_server_x11.cpp')
-rw-r--r-- | platform/linuxbsd/display_server_x11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linuxbsd/display_server_x11.cpp b/platform/linuxbsd/display_server_x11.cpp index c3b44f348c..bf9c9b1766 100644 --- a/platform/linuxbsd/display_server_x11.cpp +++ b/platform/linuxbsd/display_server_x11.cpp @@ -1835,7 +1835,7 @@ void DisplayServerX11::_set_wm_fullscreen(WindowID p_window, bool p_enabled) { Hints hints; Atom property; hints.flags = 2; - hints.decorations = window_get_flag(WINDOW_FLAG_BORDERLESS, p_window) ? 0 : 1; + hints.decorations = wd.borderless ? 0 : 1; property = XInternAtom(x11_display, "_MOTIF_WM_HINTS", True); if (property != None) { XChangeProperty(x11_display, wd.x11_window, property, property, 32, PropModeReplace, (unsigned char *)&hints, 5); |