CC: Fix color correction init signal connections

This commit is contained in:
Casian Andrei 2012-09-16 14:29:06 +03:00
parent 87515dc9a9
commit 8bec3fda71
2 changed files with 3 additions and 2 deletions

View file

@ -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()

View file

@ -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);