1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

X11: Skip Motif function hints when borderless

This commit is contained in:
Haoyu Qiu
2025-11-27 21:53:28 +08:00
parent 3a97723ff2
commit f694c64ac4

View File

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