From ddb24eaf0a2a1cdf6c20284cac99813b827c2fe3 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 24 Sep 2020 17:15:57 +0300 Subject: [PATCH] Fix ghost shadows left by context menus If the shadow is destroyed immediately before the window is destroyed, we need to schedule a workspace repaint in order to prevent showing a "ghost" shadow. BUG: 425294 --- toplevel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/toplevel.cpp b/toplevel.cpp index a83367a81..ff854b743 100644 --- a/toplevel.cpp +++ b/toplevel.cpp @@ -583,6 +583,7 @@ void Toplevel::updateShadow() { QRect dirtyRect; // old & new shadow region const QRect oldVisibleRect = visibleRect(); + addWorkspaceRepaint(oldVisibleRect); if (shadow()) { dirtyRect = shadow()->shadowRegion().boundingRect(); if (!effectWindow()->sceneWindow()->shadow()->updateShadow()) {