Skip to content

Commit 8981ced

Browse files
committed
Merge pull request #113235 from timothyqiu/motif-close
X11: Skip Motif function hints when borderless
2 parents 6b420d7 + f694c64 commit 8981ced

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

platform/linuxbsd/x11/display_server_x11.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2467,9 +2467,11 @@ void DisplayServerX11::_update_motif_wm_hints(WindowID p_window) {
24672467
WindowData &wd = windows[p_window];
24682468

24692469
MotifWmHints hints = {};
2470-
hints.flags = MWM_HINTS_DECORATIONS | MWM_HINTS_FUNCTIONS;
2470+
hints.flags = MWM_HINTS_DECORATIONS;
24712471

24722472
if (!wd.borderless) {
2473+
hints.flags |= MWM_HINTS_FUNCTIONS;
2474+
24732475
hints.decorations = MWM_DECOR_BORDER | MWM_DECOR_MENU | MWM_DECOR_TITLE;
24742476
hints.functions = MWM_FUNC_MOVE | MWM_FUNC_CLOSE;
24752477

0 commit comments

Comments
 (0)