summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-09-22 14:01:18 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-09-22 14:01:18 +0000
commit6f0bc63edf2d88b2ebc87e71d0cdc3a91705988a (patch)
treef7df5d858d29e247bd2df8afe76d18d9d67aff94 /lib/Xconfig
parent80de7a56ccd5add68cdb05f6f756caf418ad5fba (diff)
downloaddrakx-kbd-mouse-x11-6f0bc63edf2d88b2ebc87e71d0cdc3a91705988a.tar
drakx-kbd-mouse-x11-6f0bc63edf2d88b2ebc87e71d0cdc3a91705988a.tar.gz
drakx-kbd-mouse-x11-6f0bc63edf2d88b2ebc87e71d0cdc3a91705988a.tar.bz2
drakx-kbd-mouse-x11-6f0bc63edf2d88b2ebc87e71d0cdc3a91705988a.tar.xz
drakx-kbd-mouse-x11-6f0bc63edf2d88b2ebc87e71d0cdc3a91705988a.zip
don't write mouse xorg.conf entries when driver is "mouse"
Diffstat (limited to 'lib/Xconfig')
-rw-r--r--lib/Xconfig/xfree.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Xconfig/xfree.pm b/lib/Xconfig/xfree.pm
index a98d8e6..371d727 100644
--- a/lib/Xconfig/xfree.pm
+++ b/lib/Xconfig/xfree.pm
@@ -137,7 +137,8 @@ sub get_mice {
}
sub set_mice {
my ($raw_X, @mice) = @_;
- my @raw_mice = _new_mouse_sections($raw_X, map { delete $_->{Driver} || ($_->{Protocol} ? 'mouse' : 'evdev') } @mice);
+ @mice = grep { $_->{Driver} || !$_->{Protocol} } @mice;
+ my @raw_mice = _new_mouse_sections($raw_X, map { delete $_->{Driver} || 'evdev' } @mice);
mapn {
my ($raw_mouse, $mouse) = @_;
raw_import_section($raw_mouse, $mouse);