From 8bec3fda713d57c4ab847902cf0388e0465a717e Mon Sep 17 00:00:00 2001 From: Casian Andrei Date: Sun, 16 Sep 2012 14:29:06 +0300 Subject: [PATCH] CC: Fix color correction init signal connections --- scene_opengl.cpp | 4 +++- workspace.cpp | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 54d3473851..8f63d6867c 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -75,6 +75,7 @@ Sources and other compositing managers: #include "utils.h" #include "client.h" +#include "composite.h" #include "deleted.h" #include "effects.h" #include "lanczosfilter.h" @@ -131,7 +132,8 @@ void SceneOpenGL::initColorCorrection() { kDebug(1212) << "Color correction:" << options->isColorCorrected(); m_colorCorrection->setEnabled(options->isColorCorrected()); - connect(m_colorCorrection, SIGNAL(changed()), wspace, SLOT(addRepaintFull())); + connect(m_colorCorrection, SIGNAL(changed()), Compositor::self(), SLOT(addRepaintFull())); + connect(options, SIGNAL(colorCorrectedChanged()), Compositor::self(), SLOT(slotReinitialize())); } bool SceneOpenGL::selectMode() diff --git a/workspace.cpp b/workspace.cpp index 3733af01cf..258a237534 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -201,7 +201,6 @@ Workspace::Workspace(bool restore) m_compositor = Compositor::createCompositor(this); connect(this, SIGNAL(currentDesktopChanged(int,KWin::Client*)), m_compositor, SLOT(addRepaintFull())); connect(m_compositor, SIGNAL(compositingToggled(bool)), SLOT(slotCompositingToggled())); - connect(options, SIGNAL(glColorCorrectionChanged()), m_compositor, SLOT(resetCompositing())); new DBusInterface(this);