seat: fix delayed VT switches
authorDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 19 Nov 2012 12:13:01 +0000 (13:13 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 19 Nov 2012 12:13:01 +0000 (13:13 +0100)
commitd7660329e9aeae9329ae1b19ab93324fcdcb7f6c
treead072de03804982a63e9be302d2f895f4b09516f
parentcaf41788039f7d0e08e447aec9af6efcbac0c2bb
seat: fix delayed VT switches

If we switch VT and the current session cannot be put asleep, and later it
notifies us that it went asleep, we should then switch VT and not
reschedule the sessions.

We do this by remembering whether a VT switch is pending. The new
uterm-retry infrastructure allows us to easily repeat VT switches then.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/kmscon_seat.c