Merge pull request #113235 from timothyqiu/motif-close

X11: Skip Motif function hints when borderless
This commit is contained in:
Rémi Verschelde 2025-12-05 12:55:49 +01:00
commit 8981cede94
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -2467,9 +2467,11 @@ void DisplayServerX11::_update_motif_wm_hints(WindowID p_window) {
WindowData &wd = windows[p_window]; WindowData &wd = windows[p_window];
MotifWmHints hints = {}; MotifWmHints hints = {};
hints.flags = MWM_HINTS_DECORATIONS | MWM_HINTS_FUNCTIONS; hints.flags = MWM_HINTS_DECORATIONS;
if (!wd.borderless) { if (!wd.borderless) {
hints.flags |= MWM_HINTS_FUNCTIONS;
hints.decorations = MWM_DECOR_BORDER | MWM_DECOR_MENU | MWM_DECOR_TITLE; hints.decorations = MWM_DECOR_BORDER | MWM_DECOR_MENU | MWM_DECOR_TITLE;
hints.functions = MWM_FUNC_MOVE | MWM_FUNC_CLOSE; hints.functions = MWM_FUNC_MOVE | MWM_FUNC_CLOSE;