summaryrefslogtreecommitdiffstats
path: root/perl-install/mouse.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/mouse.pm')
-rw-r--r--perl-install/mouse.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm
index 28afa68aa..f126c9cc0 100644
--- a/perl-install/mouse.pm
+++ b/perl-install/mouse.pm
@@ -292,7 +292,7 @@ sub detect {
$modules_conf->get_probeall("usb-interface") and eval { modules::load('usbhid') };
my @input_devices = cat_('/proc/bus/input/devices');
my $synaptics_mouse;
- if (my $mouse_nb = grep { /^H: Handlers=mouse/ } @input_devices) {
+ if (my $mouse_nb = scalar grep { /^H: Handlers=mouse/ } @input_devices) {
if (is_xbox()) {
return fullname2mouse('Universal|Microsoft Xbox Controller S');
}