From f694c64ac4a935e61d24407615743d1978f7e956 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 27 Nov 2025 21:53:28 +0800 Subject: [PATCH] X11: Skip Motif function hints when borderless --- platform/linuxbsd/x11/display_server_x11.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/linuxbsd/x11/display_server_x11.cpp b/platform/linuxbsd/x11/display_server_x11.cpp index 8919701578a..37955b67bd1 100644 --- a/platform/linuxbsd/x11/display_server_x11.cpp +++ b/platform/linuxbsd/x11/display_server_x11.cpp @@ -2467,9 +2467,11 @@ void DisplayServerX11::_update_motif_wm_hints(WindowID p_window) { WindowData &wd = windows[p_window]; MotifWmHints hints = {}; - hints.flags = MWM_HINTS_DECORATIONS | MWM_HINTS_FUNCTIONS; + hints.flags = MWM_HINTS_DECORATIONS; if (!wd.borderless) { + hints.flags |= MWM_HINTS_FUNCTIONS; + hints.decorations = MWM_DECOR_BORDER | MWM_DECOR_MENU | MWM_DECOR_TITLE; hints.functions = MWM_FUNC_MOVE | MWM_FUNC_CLOSE;