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
master
Vlad Zahorodnii 2020-09-24 17:15:57 +03:00
parent 12e59f9af8
commit ddb24eaf0a
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()) {