1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

logind: use type to determine graphical sessions (#3071)

This commit is contained in:
Michał Bartoszkiewicz 2016-04-20 10:06:26 +02:00 committed by Lennart Poettering
parent 409472cb8c
commit 129baf1bbf

View File

@ -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