diff options
author | Ali Akbar <[email protected]> | 2019-08-26 20:31:54 +0700 |
---|---|---|
committer | monsta <[email protected]> | 2019-08-26 16:31:54 +0300 |
commit | 234e5c835559b0afe56c2af246e2148ac5b47a07 (patch) | |
tree | 51d6321e673bde892596c028b42cec4ce9714db1 /src/gs-listener-dbus.h | |
parent | 2ce29e42f9ad5b5b618fb726e264b850f59cbebc (diff) | |
download | mate-screensaver-234e5c835559b0afe56c2af246e2148ac5b47a07.tar.bz2 mate-screensaver-234e5c835559b0afe56c2af246e2148ac5b47a07.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; |