/[gentoo-x86]/x11-base/xorg-server/files/1.8.0-match-only-sane-devices.patch
Gentoo

Contents of /x11-base/xorg-server/files/1.8.0-match-only-sane-devices.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jul 22 19:54:18 2010 UTC (4 years, 8 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Drop older 1.8 series ebuilds.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 From c8a608cb6ce8f9c86258c1ab49084f691fa9cc51 Mon Sep 17 00:00:00 2001
2 From: Peter Hutterer <peter.hutterer@who-t.net>
3 Date: Wed, 07 Apr 2010 00:04:38 +0000
4 Subject: config: only match sane devices in 10-evdev.conf
5
6 Having a generic catchall also adds devices like accelerometers. These
7 devices make X unusable, hence restrict matching to "known sane" devices
8 like pointers, touchpads, keyboards, tablets and touchscreens.
9
10 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
11 Acked-by: Julien Cristau <jcristau@debian.org>
12 Acked-by: Dan Nicholson <dbn.lists@gmail.com>
13 Acked-by: James Cloos <cloos@jhcloos.com>
14 ---
15 diff --git a/config/10-evdev.conf b/config/10-evdev.conf
16 index 7406f4e..cc83ab2 100644
17 --- a/config/10-evdev.conf
18 +++ b/config/10-evdev.conf
19 @@ -1,8 +1,40 @@
20 #
21 # Catch-all evdev loader for udev-based systems
22 -#
23 +# We don't simply match on any device since that also adds accelerometers
24 +# and other devices that we don't really want to use. The list below
25 +# matches everything but joysticks.
26 +
27 Section "InputClass"
28 - Identifier "evdev-catchall"
29 + Identifier "evdev pointer catchall"
30 + MatchIsPointer "on"
31 + MatchDevicePath "/dev/input/event*"
32 Driver "evdev"
33 +EndSection
34 +
35 +Section "InputClass"
36 + Identifier "evdev keyboard catchall"
37 + MatchIsKeyboard "on"
38 MatchDevicePath "/dev/input/event*"
39 + Driver "evdev"
40 +EndSection
41 +
42 +Section "InputClass"
43 + Identifier "evdev touchpad catchall"
44 + MatchIsTouchpad "on"
45 + MatchDevicePath "/dev/input/event*"
46 + Driver "evdev"
47 +EndSection
48 +
49 +Section "InputClass"
50 + Identifier "evdev tablet catchall"
51 + MatchIsTablet "on"
52 + MatchDevicePath "/dev/input/event*"
53 + Driver "evdev"
54 +EndSection
55 +
56 +Section "InputClass"
57 + Identifier "evdev touchscreen catchall"
58 + MatchIsTouchscreen "on"
59 + MatchDevicePath "/dev/input/event*"
60 + Driver "evdev"
61 EndSection
62 --
63 cgit v0.8.3-6-g21f6

  ViewVC Help
Powered by ViewVC 1.1.20