chiark / gitweb /
logind: redefine idleness to start at last activity
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 22 Jul 2012 13:39:37 +0000 (15:39 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 16 Sep 2012 09:34:53 +0000 (11:34 +0200)
commit4a271908f1d46e0549a4d9bfc5d0e34266887695
treea1c0f563ac0a02a322bc944ea3c6d0c216045763
parent49cb1ecf2d34c9be9cbdfd82246779e7be1d14d3
logind: redefine idleness to start at last activity

Before, after the timeout, a session would be timestamped as idle
since 'last activity' + 'idle timeout'. Now, it is timestamped as idle
since 'last activity'.

Before, after all sessions were idle, the seat would be marked with as
idle with the timestamp of the oldest idle session. Now it is
marked with the timestamp of the youngest idle session.

Both changes seem to me to be closer to natural understanding of
idleness: the time since last activity counts.
src/login/logind-seat.c
src/login/logind-session.c