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: 425294master
parent
12e59f9af8
commit
ddb24eaf0a
|
@ -583,6 +583,7 @@ void Toplevel::updateShadow()
|
||||||
{
|
{
|
||||||
QRect dirtyRect; // old & new shadow region
|
QRect dirtyRect; // old & new shadow region
|
||||||
const QRect oldVisibleRect = visibleRect();
|
const QRect oldVisibleRect = visibleRect();
|
||||||
|
addWorkspaceRepaint(oldVisibleRect);
|
||||||
if (shadow()) {
|
if (shadow()) {
|
||||||
dirtyRect = shadow()->shadowRegion().boundingRect();
|
dirtyRect = shadow()->shadowRegion().boundingRect();
|
||||||
if (!effectWindow()->sceneWindow()->shadow()->updateShadow()) {
|
if (!effectWindow()->sceneWindow()->shadow()->updateShadow()) {
|
||||||
|
|
Loading…
Reference in New Issue