Simplify compositing setup code

Summary: We can get rid of the superfluous if/else ladder.

Reviewers: kwin

Subscribers: #kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D10393
This commit is contained in:
Rohan Garg 2018-02-08 20:10:16 +01:00
parent 3dbb47745f
commit 3e37f896e3

View file

@ -179,10 +179,8 @@ void Compositor::setup()
if (!options->isCompositingInitialized()) {
options->reloadCompositingSettings(true);
slotCompositingOptionsInitialized();
} else {
slotCompositingOptionsInitialized();
}
slotCompositingOptionsInitialized();
}
extern int screen_number; // main.cpp