aboutsummaryrefslogtreecommitdiffstats
path: root/vt.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-01-18 13:08:33 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-01-18 13:08:33 +0100
commit6dd9dfd266aae08880a9634c1ec015043258f92f (patch)
tree3958f1286a800cb3035edab7058037390d44fe66 /vt.c
parentd88041d909b2118ebc67b356b2848fb8bdfc8f2c (diff)
downloadfbida-6dd9dfd266aae08880a9634c1ec015043258f92f.tar.gz
libinput: handle console switches
Diffstat (limited to 'vt.c')
-rw-r--r--vt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vt.c b/vt.c
index f15d51f..55ef71f 100644
--- a/vt.c
+++ b/vt.c
@@ -12,6 +12,7 @@
#include <linux/vt.h>
#include "vt.h"
+#include "kbd.h"
/* -------------------------------------------------------------------- */
@@ -130,6 +131,7 @@ int check_console_switch(void)
case CONSOLE_REL_REQ:
console_switch_release();
case CONSOLE_INACTIVE:
+ kbd_suspend();
console_visible = 0;
break;
case CONSOLE_ACQ_REQ:
@@ -137,6 +139,7 @@ int check_console_switch(void)
case CONSOLE_ACTIVE:
console_visible = 1;
console_redraw();
+ kbd_resume();
break;
default:
break;