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
+1 -1
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