Compositor: connect to configChanged emitted by Options instead of Workspace

Removes dependency to Workspace in ctor.
icc-effect-5.14.5
Martin Gräßlin 2015-02-23 14:50:22 +01:00
parent 147af71f8a
commit 58d79e2da4
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ Compositor::Compositor(QObject* workspace)
qRegisterMetaType<Compositor::SuspendReason>("Compositor::SuspendReason");
connect(&unredirectTimer, SIGNAL(timeout()), SLOT(delayedCheckUnredirect()));
connect(&compositeResetTimer, SIGNAL(timeout()), SLOT(restart()));
connect(workspace, SIGNAL(configChanged()), SLOT(slotConfigChanged()));
connect(options, &Options::configChanged, this, &Compositor::slotConfigChanged);
connect(options, SIGNAL(unredirectFullscreenChanged()), SLOT(delayedCheckUnredirect()));
unredirectTimer.setSingleShot(true);
compositeResetTimer.setSingleShot(true);