diff options
-rw-r--r-- | perl-install/Xconfig/default.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/Xconfig/default.pm b/perl-install/Xconfig/default.pm index 6801eb49a..c33d084d8 100644 --- a/perl-install/Xconfig/default.pm +++ b/perl-install/Xconfig/default.pm @@ -13,7 +13,11 @@ sub configure { my ($keyboard, $mouse) = @_; $keyboard ||= keyboard::read($::prefix); - $mouse ||= $::noauto ? mouse::read($::prefix) : mouse::detect(); + $mouse ||= do { + my $mouse = mouse::read($::prefix); + add2hash($mouse, mouse::detect()) if !$::noauto; + $mouse; + }; my $raw_X = Xconfig::xfree->empty_config; |