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


(cherry picked from commit ddb24eaf0a)
icc-effect-5.20.5
Vlad Zahorodnii 2020-09-24 14:15:57 +00:00
parent e056406951
commit f53d90a9f9
1 changed files with 1 additions and 0 deletions

View File

@ -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()) {