PanelShadow: Don't remove shadows from destroyed windows

Authored by drosca on Feb 15 2016, 8:45 PM.

Description

PanelShadow: Don't remove shadows from destroyed windows

Summary:
If the window's platform surface was destroyed, there is also
no shadow to be removed.
Both X and Wayland code will try to create the platform surface
again, and it will lead to crash in other code that doesn't expect
platform surface to be created when the containment is being deleted.

This fixes crash in PanelConfigView::event when removing panels.

Reviewers: graesslin, Plasma

Reviewed By: graesslin, Plasma

Subscribers: plasma-devel

Projects: Plasma

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

Details

Committed
droscaFeb 16 2016, 11:08 AM
Reviewer
Plasma
Differential Revision
D951: PanelShadow: Don't remove shadows from destroyed windows
Parents
R871:fea67bd2ae75: [digital-clock] Use iso-codes for country names
Branches
Unknown
Tags
Unknown