From: MichaƂ Bartoszkiewicz Date: Wed, 20 Apr 2016 08:06:26 +0000 (+0200) Subject: logind: use type to determine graphical sessions (#3071) X-Git-Tag: v230~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=129baf1bbfe3174a667c1ae73de131c503c025ea;p=thirdparty%2Fsystemd.git logind: use type to determine graphical sessions (#3071) --- diff --git a/src/login/logind-session.c b/src/login/logind-session.c index 676fbc15a3f..a8b1d5943db 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