Diffusion KWin 576c6671245c

Avoid deleting ourselves midway through updateShadow

Authored by davidedmundson on Dec 6 2018, 12:54 PM.

Description

Avoid deleting ourselves midway through updateShadow

Summary:
If updating a shadow means that there should be no shadow, shadow ends
up deleting itself midway through the method.

It's cleaner and safer to leave that to the caller.

This new change matches the existing documentation for
Shadow::updateShadow which states

In case the Property has been withdrawn the method returns @c false.
In that case the owner should delete the Shadow.

Test Plan:
Created an ASAN of kwin
Relevant testMaximised no longer fails

Reviewers: KWin, zzag

Reviewed By: KWin, zzag

Subscribers: kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D17380

Details

Committed
davidedmundsonDec 6 2018, 12:55 PM
Reviewer
KWin
Differential Revision
D17380: Avoid deleting ourselves midway through updateShadow
Parents
R108:90a26e2e8d13: Try to invalidate quad cache when shadow is changed
Branches
Unknown
Tags
Unknown