From b7b6df07b845c49a49c4c157dcf306771e066f54 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Tue, 26 Jul 2011 06:15:41 +0000 Subject: [PATCH] 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 --- src/servers/app/Window.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/servers/app/Window.cpp b/src/servers/app/Window.cpp index d1fb9c9746..ac4010afe6 100644 --- a/src/servers/app/Window.cpp +++ b/src/servers/app/Window.cpp @@ -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; }