summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Xconfig')
-rw-r--r--lib/Xconfig/xfree.pm4
1 files changed, 2 insertions, 2 deletions
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);