notice when the only screen changes

Authored by mart on Dec 25 2016, 7:20 PM.

Description

notice when the only screen changes

Summary:
in a corner case that is used a lot, the internal laptop screen
gets automatically disabled when an external screen is connected.
the only QScreen* available from the QGuiApp gets recycled for the
new screen and there is no signal this switch occurred.

To work around this, as all the view get an expose event when this happen,
monitor the rename of the desktopview's qscreen and manage this separatedly
in the shell.

BUG:373880

Test Plan:
connection and disconnecting an external screen to the laptop
both in the case of internal screen enabled or disabled

Reviewers: davidedmundson, Plasma

Reviewed By: davidedmundson, Plasma

Subscribers: davidedmundson, plasma-devel

Tags: Plasma

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

Details

Committed
martDec 25 2016, 7:25 PM
Reviewer
Plasma
Differential Revision
D3777: notice when the only screen changes
Parents
R871:c7dda8073186: make sure applet is removed from stack when destroyed
Branches
Unknown
Tags
Unknown