uterm: vt: do nothing if VT-switch targets our VT
authorDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 19 Nov 2012 12:01:57 +0000 (13:01 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 19 Nov 2012 12:01:57 +0000 (13:01 +0100)
commit06eb8d71a7ff34147a259a304db3c2a784605711
tree2035ac9b507b8be2bd193e43b4c3ad39f1fc2ecc
parente1687d59312c742183a73d1af08079892fdf8b52
uterm: vt: do nothing if VT-switch targets our VT

If the user presses some keys to switch VTs and the target VT is our VT
(which is already active in this case), we shouldn't do anything. Calling
VT_ACTIVATE doesn't particularly hurt, but it doesn't get us anything
here so skip it.

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