diff options
author | Ali Akbar <[email protected]> | 2019-08-26 20:31:54 +0700 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-09-12 16:52:50 +0200 |
commit | f191bcc3a6139e4fcf425e8620c5a8ddd6d8e72e (patch) | |
tree | bd21a76092cfa1467adaaf69b3ad99e3f7fbc7fb /src/gs-listener-dbus.h | |
parent | b689b96493def9086e935292bc4615b910548c0d (diff) | |
download | mate-screensaver-f191bcc3a6139e4fcf425e8620c5a8ddd6d8e72e.tar.bz2 mate-screensaver-f191bcc3a6139e4fcf425e8620c5a8ddd6d8e72e.tar.xz |
Ensure lock on suspend and unlock on resume
This patch is adopted from xfce4-screensaver:
https://git.xfce.org/apps/xfce4-screensaver/commit/?id=9e53bb2866
Modified to match screen locking behavior of mate-power-manager.
Introduced new Inhibitor lock to make sure lock was in place and
user will be greeted with unlock dialog when resumes from suspend/
hibernate.
Diffstat (limited to 'src/gs-listener-dbus.h')
-rw-r--r-- | src/gs-listener-dbus.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gs-listener-dbus.h b/src/gs-listener-dbus.h index f86e75e..8f1192c 100644 --- a/src/gs-listener-dbus.h +++ b/src/gs-listener-dbus.h @@ -58,6 +58,8 @@ typedef struct const char *summary, const char *body, const char *icon); + void (* prepare_for_sleep) (GSListener *listener, + gboolean prepare); /* prepare or resume from sleep */ } GSListenerClass; |