chiark / gitweb /
logind: use type to determine graphical sessions (#3071)
[elogind.git] / src / login / logind-session.c
index e615ccd312a9f2399500863768d0559a7245ba14..2ed6b2fa355897c6faa85ced5ecc685c9af01513 100644 (file)
@@ -862,7 +862,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