use a native event filter to notice the screen was swapped

Authored by mart on Dec 29 2016, 11:32 AM.

Description

use a native event filter to notice the screen was swapped

Summary:
this replaces the approach with the expose event in
20b439a4f4a by directly monitoring the xcb screen change
notify native event

Test Plan:
attaching and detaching the external screen on a laptop
configured to deactivate the internal screen upon connection
same behavior as D3777

Reviewers: sebas, davidedmundson, Plasma

Reviewed By: davidedmundson, Plasma

Subscribers: pmuralidharan, plasma-devel

Tags: Plasma

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

Details

Committed
martDec 29 2016, 11:43 AM
Reviewer
Plasma
Differential Revision
D3822: use a native event filter to notice the screen was swapped
Parents
R871:c57ff94572bd: Update version number for 5.8.5 GIT_SILENT
Branches
Unknown
Tags
Unknown