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
This commit is contained in:
parent
12e59f9af8
commit
ddb24eaf0a
1 changed files with 1 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue