aboutsummaryrefslogtreecommitdiffstats
path: root/kbd.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-01-18 13:11:33 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-01-18 13:11:33 +0100
commite39879284f9c5ac5e410631687f4577d7f630b85 (patch)
tree14e5e153a3b471cf516c3ba6446ff98e114ced47 /kbd.c
parent6dd9dfd266aae08880a9634c1ec015043258f92f (diff)
downloadfbida-e39879284f9c5ac5e410631687f4577d7f630b85.tar.gz
Revert "libinput: grab tweaks"
This reverts commit d88041d909b2118ebc67b356b2848fb8bdfc8f2c.
Diffstat (limited to 'kbd.c')
-rw-r--r--kbd.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/kbd.c b/kbd.c
index a358e10..4ed2540 100644
--- a/kbd.c
+++ b/kbd.c
@@ -195,7 +195,6 @@ 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)
@@ -209,8 +208,7 @@ static int open_restricted(const char *path, int flags, void *user_data)
}
fprintf(stderr, "using %s\n", path);
- if (devgrab)
- ioctl(fd, EVIOCGRAB, 1);
+ ioctl(fd, EVIOCGRAB, 1);
devcount++;
return fd;
}
@@ -228,14 +226,13 @@ static const struct libinput_interface interface = {
static struct libinput *ctx;
-void kbd_init(bool use_libinput, bool use_grab, dev_t gfx)
+void kbd_init(int use_libinput, 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)