xserver-multidpi/hw/xfree86/parser
Peter Hutterer fc4fbe8224 xfree86: add NoMatchFoo directives for InputClass sections
InputClass sections use various MatchFoo directives to decide which device to
apply to. This usually works fine for specific snippets but has drawbacks for
snippets that apply more generally to a multitude of devices.

This patch adds a NoMatchFoo directive to negate a match, thus allowing
snippets that only apply if a given condition is not set. Specifically, this
allows for more flexible fallback driver matching, it is now possible to use a
snippet that says "assign driver foo, but only if driver bar wasn't already
assigned to it". For example:

Section "InputClass"
   Identifier "libinput for tablets"
   MatchIsTablet "true"
   NoMatchDriver "wacom"
   Driver "libinput"
EndSection

The above only assigns libinput to tablet devices if wacom isn't already
assigned to this device, making it possible to select a specific driver by
installing/uninstalling it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
2015-12-18 11:56:46 +10:00
..
Configint.h xserver: add xorg.conf support for gpu devices. (v2.1) 2015-04-27 13:40:40 +10:00
configProcs.h libxf86config: Remove 2015-09-23 14:28:56 -04:00
Device.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
DRI.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
Extensions.c Fix build when configured --enable-debug 2014-03-27 14:34:32 +00:00
Files.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
Flags.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
Input.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
InputClass.c xfree86: add NoMatchFoo directives for InputClass sections 2015-12-18 11:56:46 +10:00
Layout.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
Makefile.am libxf86config: libxf86config_internal -> libxf86config 2015-09-23 14:29:21 -04:00
Module.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
Monitor.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
OutputClass.c parser: static cleanup 2015-07-08 16:40:57 -04:00
Pointer.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
read.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
scan.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
Screen.c parser: static cleanup 2015-07-08 16:40:57 -04:00
Vendor.c parser: static cleanup 2015-07-08 16:40:57 -04:00
Video.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
write.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
xf86Optrec.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
xf86Parser.h xfree86: add NoMatchFoo directives for InputClass sections 2015-12-18 11:56:46 +10:00
xf86tokens.h xfree86: add NoMatchFoo directives for InputClass sections 2015-12-18 11:56:46 +10:00