When closing a window the window can't redraw the dirty region anymore. Mark the region of the remaining window dirty.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42494 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
86b010824c
commit
b7b6df07b8
@ -2111,10 +2111,10 @@ Window::DetachFromWindowStack(bool ownStackNeeded)
|
||||
// propagate focus to the new decorator
|
||||
SetFocus(IsFocus());
|
||||
|
||||
fDesktop->RebuildAndRedrawAfterWindowChange(this, dirty);
|
||||
if (remainingTop != NULL)
|
||||
fDesktop->MarkDirty(remainingTop->VisibleRegion());
|
||||
|
||||
if (remainingTop != NULL) {
|
||||
dirty.Include(&remainingTop->VisibleRegion());
|
||||
fDesktop->RebuildAndRedrawAfterWindowChange(remainingTop, dirty);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user