diff options
author | MichaĆ Bartoszkiewicz <mbartoszkiewicz@gmail.com> | 2016-04-20 10:06:26 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-04-20 10:06:26 +0200 |
commit | 129baf1bbfe3174a667c1ae73de131c503c025ea (patch) | |
tree | 3e0ce7201b94aac7159bf8a1577f3f5b1a9babfa /src/login/logind-session.c | |
parent | 409472cb8c072791dee8958af9349ee2276b8f09 (diff) |
logind: use type to determine graphical sessions (#3071)
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r-- | src/login/logind-session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c index 676fbc15a3..a8b1d5943d 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -797,7 +797,7 @@ int session_get_idle_hint(Session *s, dual_timestamp *t) { /* Graphical sessions should really implement a real * idle hint logic */ - if (s->display) + if (SESSION_TYPE_IS_GRAPHICAL(s->type)) goto dont_know; /* For sessions with an explicitly configured tty, let's check |