1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 21:38:00 +01:00

wmaker: honour MWM Hint to have no border to a window

As there is already an attribute to allow changing this behaviour, and this
is being using for the Net WM hints, there is no reason to not support it
for MWM Hints also; contrary to the initial guess suggested by the comment
it costs actually nothing to properly support that.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2015-05-10 19:56:04 +02:00
committed by Carlos R. Mafra
parent fd1dd9c7ea
commit 997b3e5d91

View File

@@ -93,13 +93,7 @@ static void setupMWMHints(WWindow *wwin, MWMHints *mwm_hints)
}
if (mwm_hints->decorations & MWM_DECOR_BORDER) {
/*
* WindowMaker is drawing only a discreet 1 pixel border without
* any decoration like a few other X window managers used to do, so
* we assume it is not worth spending the time to add extra
* complexity to handle this special request, considering also that
* the Motif toolkit is not used anymore nowadays.
*/
wwin->client_flags.no_border = 0;
}
if (mwm_hints->decorations & MWM_DECOR_RESIZEH)