summaryrefslogtreecommitdiff
path: root/src/login/logind.h
diff options
context:
space:
mode:
authorMichal Sekletar <msekleta@redhat.com>2022-04-20 10:13:43 +0200
committerMichal Sekletar <msekleta@redhat.com>2022-06-30 18:16:58 +0200
commit4e2cfb778b9ed7f22ee98f48f28cf8678d25ad32 (patch)
tree380c939838a3878cc995d913102378c1f1a4110e /src/login/logind.h
parentf63d1b0efa64fe716c2855a0410ac47ad67f7dec (diff)
downloadsystemd-4e2cfb778b9ed7f22ee98f48f28cf8678d25ad32.tar.gz
logind: remember our idle state and use it to detect idle level transitions
Fixes #16391
Diffstat (limited to 'src/login/logind.h')
-rw-r--r--src/login/logind.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/logind.h b/src/login/logind.h
index 27f9e9729f..58677c9491 100644
--- a/src/login/logind.h
+++ b/src/login/logind.h
@@ -94,6 +94,7 @@ struct Manager {
usec_t idle_action_usec;
usec_t idle_action_not_before_usec;
HandleAction idle_action;
+ bool was_idle;
HandleAction handle_power_key;
HandleAction handle_power_key_long_press;