diff --git a/src/servers/app/Window.cpp b/src/servers/app/Window.cpp index def7a11792..656a683333 100644 --- a/src/servers/app/Window.cpp +++ b/src/servers/app/Window.cpp @@ -2113,6 +2113,7 @@ Window::DetachFromWindowStack(bool ownStackNeeded) if (remainingTop != NULL) { dirty.Include(&remainingTop->VisibleRegion()); + dirty.IntersectWith(&remainingTop->VisibleRegion()); fDesktop->RebuildAndRedrawAfterWindowChange(remainingTop, dirty); } return true;