diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-09-22 14:01:40 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-09-22 14:01:40 +0000 |
commit | fc1da5f387c2214fde51504b2cda152892af6630 (patch) | |
tree | ff0bd774f95598c758d1e5573c09129e5e112cd6 | |
parent | 957635555f7759c52d996b65beb770df1c945c23 (diff) | |
download | drakx-kbd-mouse-x11-fc1da5f387c2214fde51504b2cda152892af6630.tar drakx-kbd-mouse-x11-fc1da5f387c2214fde51504b2cda152892af6630.tar.gz drakx-kbd-mouse-x11-fc1da5f387c2214fde51504b2cda152892af6630.tar.bz2 drakx-kbd-mouse-x11-fc1da5f387c2214fde51504b2cda152892af6630.tar.xz drakx-kbd-mouse-x11-fc1da5f387c2214fde51504b2cda152892af6630.zip |
don't write entries for evdev mice either
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | lib/Xconfig/xfree.pm | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ - XFdrake: o don't write sections in xorg.conf for USB wacom tablets, Synaptics - touchpads, mouses and keyboards + touchpads, mouses using "evdev" or "mouse" and keyboards Version 0.79 - 14 September 2009 diff --git a/lib/Xconfig/xfree.pm b/lib/Xconfig/xfree.pm index b248b7f..c53e2ca 100644 --- a/lib/Xconfig/xfree.pm +++ b/lib/Xconfig/xfree.pm @@ -120,8 +120,8 @@ sub get_mice { } sub set_mice { my ($raw_X, @mice) = @_; - @mice = grep { $_->{Driver} || !$_->{Protocol} } @mice; - my @raw_mice = _new_mouse_sections($raw_X, map { delete $_->{Driver} || 'evdev' } @mice); + @mice = grep { $_->{Driver} && $_->{Driver} ne 'evdev' } @mice; + my @raw_mice = _new_mouse_sections($raw_X, map { delete $_->{Driver} } @mice); mapn { my ($raw_mouse, $mouse) = @_; raw_import_section($raw_mouse, $mouse); |