Don't register a new service for screenshots
Summary: If you're going to have kwin in the service name anyway there's absolutely no benefit to having clients not use the existing org.kde.KWin. Test Plan: Object is still registered. Reviewers: #plasma, graesslin Reviewed By: #plasma, graesslin Subscribers: graesslin, plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D3357
This commit is contained in:
parent
adbd9fc54a
commit
aae24bb07d
1 changed files with 0 additions and 2 deletions
|
@ -62,13 +62,11 @@ ScreenShotEffect::ScreenShotEffect()
|
||||||
{
|
{
|
||||||
connect ( effects, SIGNAL(windowClosed(KWin::EffectWindow*)), SLOT(windowClosed(KWin::EffectWindow*)) );
|
connect ( effects, SIGNAL(windowClosed(KWin::EffectWindow*)), SLOT(windowClosed(KWin::EffectWindow*)) );
|
||||||
QDBusConnection::sessionBus().registerObject(QStringLiteral("/Screenshot"), this, QDBusConnection::ExportScriptableContents);
|
QDBusConnection::sessionBus().registerObject(QStringLiteral("/Screenshot"), this, QDBusConnection::ExportScriptableContents);
|
||||||
QDBusConnection::sessionBus().registerService(QStringLiteral("org.kde.kwin.Screenshot"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ScreenShotEffect::~ScreenShotEffect()
|
ScreenShotEffect::~ScreenShotEffect()
|
||||||
{
|
{
|
||||||
QDBusConnection::sessionBus().unregisterObject(QStringLiteral("/Screenshot"));
|
QDBusConnection::sessionBus().unregisterObject(QStringLiteral("/Screenshot"));
|
||||||
QDBusConnection::sessionBus().unregisterService(QStringLiteral("org.kde.kwin.Screenshot"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef KWIN_HAVE_XRENDER_COMPOSITING
|
#ifdef KWIN_HAVE_XRENDER_COMPOSITING
|
||||||
|
|
Loading…
Reference in a new issue