chiark / gitweb /
logind: use type to determine graphical sessions (#3071)
authorMichał Bartoszkiewicz <mbartoszkiewicz@gmail.com>
Wed, 20 Apr 2016 08:06:26 +0000 (10:06 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:58 +0000 (10:12 +0200)
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 */
 
         /* 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
                 goto dont_know;
 
         /* For sessions with an explicitly configured tty, let's check