summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-29 17:58:23 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-29 17:58:23 +0000
commit74c79d68b2b44241f8f59ee5ef806eec985347a7 (patch)
tree9d857bee8264cd0d746ef69f116c59d2b23d73e7
parent220df80930e312c989795fa6ab0a92bebc9df629 (diff)
downloaddrakx-backup-do-not-use-74c79d68b2b44241f8f59ee5ef806eec985347a7.tar
drakx-backup-do-not-use-74c79d68b2b44241f8f59ee5ef806eec985347a7.tar.gz
drakx-backup-do-not-use-74c79d68b2b44241f8f59ee5ef806eec985347a7.tar.bz2
drakx-backup-do-not-use-74c79d68b2b44241f8f59ee5ef806eec985347a7.tar.xz
drakx-backup-do-not-use-74c79d68b2b44241f8f59ee5ef806eec985347a7.zip
fix default config for mouse
-rw-r--r--perl-install/Xconfig/default.pm6
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;