mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-15 21:10:59 +01:00
xwin: Improve handling of no-decoration motif hint
When motif decoration hint asks for no decoration, don't add sysmenu,
mimimize or maximimize controls.
(This fixes a problem with e.g. fbpanel having a minimize control, but
gtk's panel_configure_event() doesn't like the state we put the window
into when we minimize it, causing it to spin)
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
(cherry picked from commit d7cef6fbe2)
This commit is contained in:
parent
f0c2a35277
commit
1e143cff16
1 changed files with 1 additions and 1 deletions
|
|
@ -1738,7 +1738,7 @@ winApplyHints(Display * pDisplay, Window iWindow, HWND hWnd, HWND * zstyle)
|
|||
if (mwm_hint && nitems == PropMwmHintsElements &&
|
||||
(mwm_hint->flags & MwmHintsDecorations)) {
|
||||
if (!mwm_hint->decorations)
|
||||
hint |= HINT_NOFRAME;
|
||||
hint |= (HINT_NOFRAME | HINT_NOSYSMENU | HINT_NOMINIMIZE | HINT_NOMAXIMIZE);
|
||||
else if (!(mwm_hint->decorations & MwmDecorAll)) {
|
||||
if (mwm_hint->decorations & MwmDecorBorder)
|
||||
hint |= HINT_BORDER;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue