CC: Fix color correction init signal connections
This commit is contained in:
parent
87515dc9a9
commit
8bec3fda71
2 changed files with 3 additions and 2 deletions
|
@ -75,6 +75,7 @@ Sources and other compositing managers:
|
||||||
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
|
#include "composite.h"
|
||||||
#include "deleted.h"
|
#include "deleted.h"
|
||||||
#include "effects.h"
|
#include "effects.h"
|
||||||
#include "lanczosfilter.h"
|
#include "lanczosfilter.h"
|
||||||
|
@ -131,7 +132,8 @@ void SceneOpenGL::initColorCorrection()
|
||||||
{
|
{
|
||||||
kDebug(1212) << "Color correction:" << options->isColorCorrected();
|
kDebug(1212) << "Color correction:" << options->isColorCorrected();
|
||||||
m_colorCorrection->setEnabled(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()
|
bool SceneOpenGL::selectMode()
|
||||||
|
|
|
@ -201,7 +201,6 @@ Workspace::Workspace(bool restore)
|
||||||
m_compositor = Compositor::createCompositor(this);
|
m_compositor = Compositor::createCompositor(this);
|
||||||
connect(this, SIGNAL(currentDesktopChanged(int,KWin::Client*)), m_compositor, SLOT(addRepaintFull()));
|
connect(this, SIGNAL(currentDesktopChanged(int,KWin::Client*)), m_compositor, SLOT(addRepaintFull()));
|
||||||
connect(m_compositor, SIGNAL(compositingToggled(bool)), SLOT(slotCompositingToggled()));
|
connect(m_compositor, SIGNAL(compositingToggled(bool)), SLOT(slotCompositingToggled()));
|
||||||
connect(options, SIGNAL(glColorCorrectionChanged()), m_compositor, SLOT(resetCompositing()));
|
|
||||||
|
|
||||||
new DBusInterface(this);
|
new DBusInterface(this);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue