mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-22 01:20:26 +00:00
xfree86: Add MatchOS InputClass entry for operating system matching
Allow InputClass sections to match against the running operating system to narrow the application of rules. An example where this could be used is to specify that the default input driver on Linux is evdev while it's mouse/kbd everywhere else. The operating system name is the same as `uname -s`, and matching is case-insensitive. Signed-off-by: Dan Nicholson <dbn.lists@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
9b30fa9f8f
commit
d1b4beecbc
7 changed files with 66 additions and 1 deletions
|
|
@ -1086,6 +1086,15 @@ This entry can be used to check if the device file matches the
|
|||
pathname pattern. Multiple patterns can be matched by separating arguments
|
||||
with a '|' character.
|
||||
.TP 7
|
||||
.BI "MatchOS \*q" matchos \*q
|
||||
This entry can be used to check if the operating system matches the
|
||||
case-insensitive
|
||||
.RI \*q matchos \*q
|
||||
string. This entry is only supported on platforms providing the
|
||||
.BR uname (2)
|
||||
system call. Multiple operating systems can be matched by separating arguments
|
||||
with a '|' character.
|
||||
.TP 7
|
||||
.BI "MatchTag \*q" matchtag \*q
|
||||
This entry can be used to check if tags assigned by the config backend
|
||||
matches the
|
||||
|
|
|
|||
Loading…
Reference in a new issue