Simplify XRandR::outputChanged

Authored by gladhorn on Aug 9 2019, 9:53 PM.

Description

Simplify XRandR::outputChanged

By returning early, we can avoid some of the nesting. The old code would
call m_configChangeCompressor->start() in any case, move that to the
beginning and then use early returns.
There is actually very little code changed, "git show -w" shows the
actual changes. The fallthrough was hard to read.

Reviewers: Plasma

Subscribers: mart, plasma-devel

Tags: Plasma

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

Details

Committed
gladhornAug 9 2019, 9:54 PM
Differential Revision
D14764: Simplify XRandR::outputChanged
Parents
R110:6f5acdf2e6d7: Wayland: manage outputs without id mapping
Branches
Unknown
Tags
Unknown