* 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
This commit is contained in:
parent
f69f65ec96
commit
ca89b8ff59
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user