[X11] Fix decoration reset when returning from fullscreen mode.

This commit is contained in:
bruvzg 2022-02-08 11:01:24 +02:00
parent 0154ce2c8d
commit 4fcc35bdfa
No known key found for this signature in database
GPG Key ID: 7960FCF39844EC38

View File

@ -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);