aboutsummaryrefslogtreecommitdiffstats
path: root/kbd.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-01-18 13:00:01 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-01-18 13:00:01 +0100
commitd88041d909b2118ebc67b356b2848fb8bdfc8f2c (patch)
treea5e5e41a2aad0637b1799da3555c214f346dab0d /kbd.c
parent2692e11168fec90673d21caf2c811cadbf63d2be (diff)
downloadfbida-d88041d909b2118ebc67b356b2848fb8bdfc8f2c.tar.gz
libinput: grab tweaks
Diffstat (limited to 'kbd.c')
-rw-r--r--kbd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kbd.c b/kbd.c
index ff29c6e..dbd9ef8 100644
--- a/kbd.c
+++ b/kbd.c
@@ -195,6 +195,7 @@ static int file_wait(int fd, int timeout)
/* ---------------------------------------------------------------------- */
+static bool devgrab;
static int devcount;
static int open_restricted(const char *path, int flags, void *user_data)
@@ -226,13 +227,14 @@ static const struct libinput_interface interface = {
static struct libinput *ctx;
-void kbd_init(int use_libinput, dev_t gfx)
+void kbd_init(bool use_libinput, bool use_grab, dev_t gfx)
{
struct udev *udev;
struct udev_device *ugfx;
const char *seat = NULL;
if (use_libinput) {
+ devgrab = use_grab;
udev = udev_new();
ugfx = udev_device_new_from_devnum(udev, 'c', gfx);
if (ugfx)