diff options
author | Colin Harrison <colin.harrison@virgin.net> | 2012-04-09 15:48:08 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-04-09 16:42:03 +0100 |
commit | 96f82ff22e78e1d0cea2e880d15e09036216f876 (patch) | |
tree | 7fcfce513da500d63757e703357da308b78c09a2 | |
parent | b309f093d6e90201fd9a56de40fd8f9f545f8f68 (diff) |
If a window has had its taskbar button removed, disable its minimize button to prevent it becoming lost
-rw-r--r-- | hw/xwin/winmultiwindowwm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xwin/winmultiwindowwm.c b/hw/xwin/winmultiwindowwm.c index a33d17eae..5eae76dba 100644 --- a/hw/xwin/winmultiwindowwm.c +++ b/hw/xwin/winmultiwindowwm.c @@ -1961,6 +1961,9 @@ winApplyHints (Display *pDisplay, Window iWindow, HWND hWnd, HWND *zstyle) if (hint & HINT_NOSYSMENU) style = style & ~WS_SYSMENU; + if (hint & HINT_SKIPTASKBAR) + style = style & ~WS_MINIMIZEBOX; /* window will become lost if minimized */ + SetWindowLongPtr (hWnd, GWL_STYLE, style); /* now we have iTaskbar, use that as well */ |