summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLaércio de Sousa <lbsousajr@gmail.com>2013-09-18 13:42:17 -0300
committerPeter Hutterer <peter.hutterer@who-t.net>2013-09-25 03:52:54 +1000
commitc73c36b537f996574628e69681833ea37dec2b6e (patch)
treedb9b6ca4b1daea9650f0b892be5132b457039963 /config
parent160c2db32d0b9ee5316a44179a6af4f4722e3d0a (diff)
xserver: enable InputClass option "GrabDevice" by default for non-seat0 seats (#69478)
This patch contributes to fill the remaining gaps which make systemd-multi-seat-x wrapper still necessary in some multiseat setups. This also replaces previous evdev patch that does the same thing for that particular driver. When option "-seat" is passed with an argument different from "seat0", option "GrabDevice" for input devices is enabled by default (no need of enabling it in xorg.conf's "InputClass" section). Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=69478 Signed-off-by: Laércio de Sousa <lbsousajr@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'config')
-rw-r--r--config/udev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/udev.c b/config/udev.c
index de8924143..b55b78ec5 100644
--- a/config/udev.c
+++ b/config/udev.c
@@ -226,6 +226,10 @@ device_added(struct udev_device *udev_device)
input_options = input_option_new(input_options, "config_info", config_info);
+ /* Default setting needed for non-seat0 seats */
+ if (ServerIsNotSeat0())
+ input_options = input_option_new(input_options, "GrabDevice", "on");
+
LogMessage(X_INFO, "config/udev: Adding input device %s (%s)\n",
name, path);
rc = NewInputDeviceRequest(input_options, &attrs, &dev);