uterm: vt: fix input-device sleep-control
authorDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 19 Nov 2012 14:57:35 +0000 (15:57 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 19 Nov 2012 14:57:35 +0000 (15:57 +0100)
commit71e497277d1f497bdbaead2b6282bfff455075c5
treee0ed2ba491b1443916d80162f094c55221b84c10
parentf460764f9e17df60525123aee0b15a1e4f7aebeb
uterm: vt: fix input-device sleep-control

We need to correctly put input devices asleep only if we really disable
the VT. If our callbacks fail and prevent the VT-switch, we must keep the
input devices awake. Otherwise, we will lose control over the
sleep-states.

Also correctly put the device asleep during shutdown.

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