From d88041d909b2118ebc67b356b2848fb8bdfc8f2c Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 18 Jan 2019 13:00:01 +0100 Subject: libinput: grab tweaks --- fbpdf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'fbpdf.c') diff --git a/fbpdf.c b/fbpdf.c index 91ccecd..32e1b2d 100644 --- a/fbpdf.c +++ b/fbpdf.c @@ -237,6 +237,7 @@ int main(int argc, char *argv[]) { GError *err = NULL; bool framebuffer = false; + bool use_grab = false; bool use_libinput; bool quit, newpage, pageflip; char cwd[1024]; @@ -327,6 +328,10 @@ 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; + } } surface1 = cairo_image_surface_create_for_data(gfx->mem, @@ -342,7 +347,7 @@ int main(int argc, char *argv[]) gfx->stride); } - kbd_init(use_libinput, gfx->devnum); + kbd_init(use_libinput, use_grab, gfx->devnum); index = 0; newpage = true; -- cgit