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:
Clemens Zeidler 2011-07-26 06:15:41 +00:00
parent 86b010824c
commit b7b6df07b8

View File

@ -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;
}