Cleanup wayland resources used in kwindowsystem before they're deleted by QPA

Authored by davidedmundson on May 5 2017, 10:26 PM.

Description

Cleanup wayland resources used in kwindowsystem before they're deleted by QPA

Summary:
When the Qt QPA closes it deletes the wl_display
deleting wl_display deletes the wl_registry
when we destroy the kwayland wrapper we double delete
as the windowsystem integration is a singleton we're not deleted till
after qApp.

By manually releasing the wayland parts early we avoid that problem,
whilst still being safe if any app did make a KWindowSystem call during
shutdown.

BUG: 374665

Test Plan:
Locked screen, no longer crashed when typing in password
Opened system settings, created a blurred tooltip then closed. No longer crashed

Making a unit test that runs during qApp shutdown will be incredibly difficult.

Reviewers: Plasma

Subscribers: plasma-devel

Tags: Plasma

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

Details

Committed
davidedmundsonMay 5 2017, 10:28 PM
Differential Revision
D5723: Cleanup wayland resources used in kwindowsystem before they're deleted by QPA
Parents
R130:49e0c6a9ffa7: Merge Plasma/5.9
Branches
Unknown
Tags
Unknown