logind: also check session class in session_get_idle_hint()

This commit is contained in:
Lennart Poettering
2024-10-22 18:44:05 +02:00
parent 4096fcde09
commit 1bf9e308eb
+3
View File
@@ -1098,6 +1098,9 @@ int session_get_idle_hint(Session *s, dual_timestamp *t) {
assert(s);
if (!SESSION_CLASS_CAN_IDLE(s->class))
return false;
/* Graphical sessions have an explicit idle hint */
if (SESSION_TYPE_IS_GRAPHICAL(s->type)) {
if (t)