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:
parent
409472cb8c
commit
129baf1bbf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user