From 2ea5e5e8e581b792bbfc35a6f69f43f54a1cf4b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 18 Jan 2009 17:30:57 +0000 Subject: [PATCH] * We should not ignore the minimize request completely when the window is hidden, but at least set it to minimized. * Also, we shouldn't show minimized windows, but keep them hidden. This prevents the app_server/BWindow to go out of sync wrt the show level. This also fixes bug #3258. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28938 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/ServerWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/servers/app/ServerWindow.cpp b/src/servers/app/ServerWindow.cpp index c294a68cf5..d662e51936 100644 --- a/src/servers/app/ServerWindow.cpp +++ b/src/servers/app/ServerWindow.cpp @@ -373,7 +373,8 @@ ServerWindow::_Show() // NOTE: if you do something else, other than sending a port message, PLEASE lock STRACE(("ServerWindow %s: _Show\n", Title())); - if (fQuitting || !fWindow->IsHidden() || fWindow->IsOffscreenWindow()) + if (fQuitting || fWindow->IsMinimized() || !fWindow->IsHidden() + || fWindow->IsOffscreenWindow()) return; // TODO: Maybe we need to dispatch a message to the desktop to show/hide us @@ -669,6 +670,7 @@ ServerWindow::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link) if (showLevel <= 0) { // window is currently hidden - ignore the minimize request + fWindow->SetMinimized(minimize); break; }