Commit f53d90a9 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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 ddb24eaf)
parent e0564069
......@@ -583,6 +583,7 @@ void Toplevel::updateShadow()
QRect dirtyRect; // old & new shadow region
const QRect oldVisibleRect = visibleRect();
if (shadow()) {
dirtyRect = shadow()->shadowRegion().boundingRect();
if (!effectWindow()->sceneWindow()->shadow()->updateShadow()) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment