From 96f82ff22e78e1d0cea2e880d15e09036216f876 Mon Sep 17 00:00:00 2001 From: Colin Harrison Date: Mon, 9 Apr 2012 15:48:08 +0100 Subject: If a window has had its taskbar button removed, disable its minimize button to prevent it becoming lost --- hw/xwin/winmultiwindowwm.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- cgit v1.2.3