summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Harrison <colin.harrison@virgin.net>2012-04-09 15:48:08 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-04-09 16:42:03 +0100
commit96f82ff22e78e1d0cea2e880d15e09036216f876 (patch)
tree7fcfce513da500d63757e703357da308b78c09a2
parentb309f093d6e90201fd9a56de40fd8f9f545f8f68 (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.c3
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 */