[kwin] Connect the Compositor to a reinit signal

Allows to force a reinit from the config module again.
This commit is contained in:
Martin Gräßlin 2013-12-03 07:11:30 +01:00
parent f7bc2775d1
commit d90be88446

View file

@ -94,6 +94,8 @@ Compositor::Compositor(QObject* workspace)
QDBusConnection dbus = QDBusConnection::sessionBus();
dbus.registerObject(QStringLiteral("/Compositor"), this);
dbus.registerService(QStringLiteral("org.kde.kwin.Compositing"));
dbus.connect(QString(), QStringLiteral("/Compositor"), QStringLiteral("org.kde.kwin.Compositing"),
QStringLiteral("reinit"), this, SLOT(slotReinitialize()));
connect(&unredirectTimer, SIGNAL(timeout()), SLOT(delayedCheckUnredirect()));
connect(&compositeResetTimer, SIGNAL(timeout()), SLOT(restart()));
connect(workspace, SIGNAL(configChanged()), SLOT(slotConfigChanged()));