diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-07-20 17:10:54 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-10-20 14:03:03 +0100 |
commit | 29cbafb07a67bdc1091f3ef14ef3f5e2d4410cd8 (patch) | |
tree | 64a4af47a3c1e49be3c00e24f18641d5d948cc1b | |
parent | 1fc2d5946f5ff1ced5cc897c6c9fc5d56c2dc430 (diff) |
Cygwin/X: Hide native windows for unmapped, non-minimized X windowsreorder-window-creation-skip-taskbar
Avoid the native windows corresponding to unmapped, non-minimized X windows lingering around
XXX: this isn't quite right, it will miss the mapped -> unmapped transition for a minimized window.
Perhaps we should track the WM_STATE (normal, withdrawn, iconic) of a X window properly.
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r-- | hw/xwin/winmultiwindowwindow.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/xwin/winmultiwindowwindow.c b/hw/xwin/winmultiwindowwindow.c index e6a7121db..f00a25ef1 100644 --- a/hw/xwin/winmultiwindowwindow.c +++ b/hw/xwin/winmultiwindowwindow.c @@ -327,6 +327,10 @@ winUnmapWindowMultiWindow (WindowPtr pWin) fResult = (*pScreen->UnrealizeWindow)(pWin); WIN_WRAP(UnrealizeWindow, winUnmapWindowMultiWindow); + /* Hide the unmapped window (unless it is being unmapped because it is minimized) */ + if (!IsIconic(pWinPriv->hWnd)) + ShowWindow(pWinPriv->hWnd, SW_HIDE); + return fResult; } |