From 10dc85923155854ad1f46f6a203f791e0370380d Mon Sep 17 00:00:00 2001 From: Ingo Heimbach Date: Wed, 8 Jul 2020 08:06:40 +0200 Subject: [PATCH] Add support for the Xfce screensaver --- src/core/ScreenLockListenerDBus.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/ScreenLockListenerDBus.cpp b/src/core/ScreenLockListenerDBus.cpp index 66970aee3..2086e3302 100644 --- a/src/core/ScreenLockListenerDBus.cpp +++ b/src/core/ScreenLockListenerDBus.cpp @@ -51,6 +51,13 @@ ScreenLockListenerDBus::ScreenLockListenerDBus(QWidget* parent) this, // receiver SLOT(gnomeSessionStatusChanged(uint))); + sessionBus.connect("org.xfce.ScreenSaver", // service + "/org/xfce/ScreenSaver", // path + "org.xfce.ScreenSaver", // interface + "ActiveChanged", // signal name + this, // receiver + SLOT(freedesktopScreenSaver(bool))); + systemBus.connect("org.freedesktop.login1", // service "/org/freedesktop/login1", // path "org.freedesktop.login1.Manager", // interface