xserver-multidpi/hw/kdrive
Laércio de Sousa daa6d2d58f config/udev: distinguish between real keyboards and other key devices
This patch introduces a new flag ATTR_KEY for hotplugged input devices,
so we can better distinguish between real keyboards (i.e. devices with
udev property ID_INPUT_KEYBOARD="1") and other key input devices like
lid switches, power buttons, etc.

All supported hotplug backends (udev, hal, and wscons) will set both
flags ATTR_KEY and ATTR_KEYBOARD for real keyboards, but udev backend
will set ATTR_KEY, but not ATTR_KEYBOARD, for non-keyboard key input
devices (hal and wscons will set both flags in any case). With this
distinction, kdrive input hotplugging mechanism will be allowed to only
grab real keyboards, as other key input devices are currently not
supported.

In order to don't break current behaviour, this patch will replace all
ATTR_KEYBOARD occurrences with ATTR_KEY in hw/xfree86/common/xf86Xinput.c.

[ajax: Just add ATTR_KEY, don't re-number the other attributes]

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Laércio de Sousa <laerciosousa@sme-mogidascruzes.sp.gov.br>
2016-03-01 10:46:48 -05:00
..
ephyr ephyr: enable option -sw-cursor by default in multi-seat mode 2016-03-01 10:46:43 -05:00
fake kdrive: Delete unused TOUCHSCREEN define. 2015-10-06 10:43:05 -04:00
fbdev kdrive: Delete unused TOUCHSCREEN define. 2015-10-06 10:43:05 -04:00
linux kdrive/evdev: update keyboard LEDs (#22302) 2016-02-22 16:34:44 -05:00
src config/udev: distinguish between real keyboards and other key devices 2016-03-01 10:46:48 -05:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00
Xkdrive.man kdrive: Remove some dead bits of the man page 2014-07-29 09:51:40 -04:00