mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 05:39:58 +00:00
Merge pull request #113235 from timothyqiu/motif-close
X11: Skip Motif function hints when borderless
This commit is contained in:
commit
8981cede94
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue