Diffusion KWin 20205f93f7cd

Save Compositor state in single variable

Authored by romangg on Jul 4 2019, 1:19 AM.

Description

Save Compositor state in single variable

Summary:
Replace the several internal state booleans of Compositor with a single
enum to register the current state of the compositor. We register four
states of starting, started, stopping and stopped.

The goal is to replace the several different conditionals when starting
and stopping the compositor with a single well defined flow.

There are currently still some ugly conditionals and some replaced ones
might need some more work.

Test Plan: Manually in X and Wayland. Relevant auto tests pass.

Reviewers: KWin, zzag

Reviewed By: KWin, zzag

Subscribers: zzag, kwin

Tags: KWin

Maniphest Tasks: T11071

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

Details

Committed
romanggJul 4 2019, 8:52 PM
Reviewer
KWin
Differential Revision
D22277: Save Compositor state in single variable
Parents
R108:d21f09d4ab2e: Remove Compositor created check
Branches
Unknown
Tags
Unknown