Move the screensaver inhibit, heartbeat, and lock code to its own set of files we can easily share with xfce4-power-manager. Use the screensaver's dbus API if it supports it for inhibit and lock calls. Otherwise, use the heartbeat-command and LockCommand from xfpm and xfsm if available. Finally, for the lock function, fallback to trying xdg-screensaver, xflock4, and xscreensaver-command in that order.
9fa8c63 Handle screensaver with it's own object (Bug #12603)
xfce4-session/Makefile.am | 2 +
xfce4-session/xfce-screensaver.c | 575 ++++++++++++++++++++++++++++++++
xfce4-session/xfce-screensaver.h | 58 ++++
xfce4-session/xfsm-consolekit.c | 15 +-
xfce4-session/xfsm-shutdown-fallback.c | 8 +-
xfce4-session/xfsm-systemd.c | 14 +-
6 files changed, 662 insertions(+), 10 deletions(-)
Upstream: git.xfce.org