From ca89b8ff590736c51e3d385e0c7ff7ef4ed32a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 4 Nov 2008 15:27:56 +0000 Subject: [PATCH] * The app_server implementation of BView::GetClippingRegion() was using the wrong check to see if the view was currently visible. This fixes the problem that tool tips would popup for windows that are located on other workspaces. * Removed commented out code that is no longer needed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28498 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/ServerWindow.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/servers/app/ServerWindow.cpp b/src/servers/app/ServerWindow.cpp index c5f4f192a5..63b754243e 100644 --- a/src/servers/app/ServerWindow.cpp +++ b/src/servers/app/ServerWindow.cpp @@ -1779,21 +1779,6 @@ fDesktop->LockSingleWindow(); break; fCurrentView->SetUserClipping(®ion); - -// TODO: reenable AS_VIEW_CLIP_TO_PICTURE -#if 0 - if (rootLayer && !(fCurrentView->IsHidden()) && !fWindow->InUpdate()) { - BRegion invalidRegion; - fCurrentView->GetOnScreenRegion(invalidRegion); - - // TODO: this is broken! a smaller area may be invalidated! - - fCurrentView->fParent->MarkForRebuild(invalidRegion); - fCurrentView->fParent->TriggerRebuild(); - rootLayer->MarkForRedraw(invalidRegion); - rootLayer->TriggerRedraw(); - } -#endif break; } @@ -1803,7 +1788,7 @@ fDesktop->LockSingleWindow(); // if this View is hidden, it is clear that its visible region is void. fLink.StartMessage(B_OK); - if (fCurrentView->IsHidden()) { + if (!fWindow->IsVisible() || !fCurrentView->IsVisible()) { BRegion empty; fLink.AttachRegion(empty); } else {