diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 13:00:01 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 13:00:01 +0100 |
commit | d88041d909b2118ebc67b356b2848fb8bdfc8f2c (patch) | |
tree | a5e5e41a2aad0637b1799da3555c214f346dab0d /fbi.c | |
parent | 2692e11168fec90673d21caf2c811cadbf63d2be (diff) | |
download | fbida-d88041d909b2118ebc67b356b2848fb8bdfc8f2c.tar.gz |
libinput: grab tweaks
Diffstat (limited to 'fbi.c')
-rw-r--r-- | fbi.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1326,6 +1326,7 @@ int main(int argc, char *argv[]) int once; int i, arg, key; bool framebuffer = false; + bool use_grab = false; bool use_libinput; char *info, *desc, *device, *output, *mode; char linebuffer[128]; @@ -1444,11 +1445,15 @@ int main(int argc, char *argv[]) fprintf(stderr, "WARNING: Other processes (fbcon too) can write to display.\n"); fprintf(stderr, "WARNING: Also can't properly cleanup on exit.\n"); } + if (use_libinput) { + fprintf(stderr, "NOTICE: Using input device grab.\n"); + use_grab = true; + } } shadow_init(gfx); /* svga main loop */ - kbd_init(use_libinput, gfx->devnum); + kbd_init(use_libinput, use_grab, gfx->devnum); desc = NULL; info = NULL; for (;;) { |