diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-16 17:05:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-16 18:59:08 +0200 |
commit | c7b5eb98e8eeafe63a079ee3c51e9670872437ae (patch) | |
tree | 1c0d5ae1028169f4b3e96f20bbf30a4f9cebcd27 /src/login/logind.c | |
parent | f8e2fb7b14e53f5a4bcfd66d26910af1dee185c6 (diff) |
logind: hook up inhibit logic with idle hint logic
Diffstat (limited to 'src/login/logind.c')
-rw-r--r-- | src/login/logind.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/login/logind.c b/src/login/logind.c index 7222e3aaa7..1169752873 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -1157,12 +1157,14 @@ void manager_gc(Manager *m, bool drop_not_started) { int manager_get_idle_hint(Manager *m, dual_timestamp *t) { Session *s; - bool idle_hint = true; + bool idle_hint; dual_timestamp ts = { 0, 0 }; Iterator i; assert(m); + idle_hint = !manager_is_inhibited(m, INHIBIT_IDLE, t); + HASHMAP_FOREACH(s, m->sessions, i) { dual_timestamp k; int ih; |