diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 13:08:33 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 13:08:33 +0100 |
commit | 6dd9dfd266aae08880a9634c1ec015043258f92f (patch) | |
tree | 3958f1286a800cb3035edab7058037390d44fe66 /vt.c | |
parent | d88041d909b2118ebc67b356b2848fb8bdfc8f2c (diff) | |
download | fbida-6dd9dfd266aae08880a9634c1ec015043258f92f.tar.gz |
libinput: handle console switches
Diffstat (limited to 'vt.c')
-rw-r--r-- | vt.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |