From 58d79e2da473d42af65ec9f3dc580192782c7003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 23 Feb 2015 14:50:22 +0100 Subject: [PATCH] Compositor: connect to configChanged emitted by Options instead of Workspace Removes dependency to Workspace in ctor. --- composite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composite.cpp b/composite.cpp index 273c2e709b..caa0d28cb2 100644 --- a/composite.cpp +++ b/composite.cpp @@ -96,7 +96,7 @@ Compositor::Compositor(QObject* workspace) qRegisterMetaType("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);