summaryrefslogtreecommitdiffstats
path: root/perl-install/mouse.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-02-08 17:50:15 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-02-08 17:50:15 +0000
commit092a51022843b9217bbbe8cbd2affc312450523e (patch)
tree9ae8eec1552f3d5c9ebfacf89c72db4c1d6907d8 /perl-install/mouse.pm
parent5f68450cc9d2f7c543a5d3cd5b8351a83ddffb4b (diff)
downloaddrakx-backup-do-not-use-092a51022843b9217bbbe8cbd2affc312450523e.tar
drakx-backup-do-not-use-092a51022843b9217bbbe8cbd2affc312450523e.tar.gz
drakx-backup-do-not-use-092a51022843b9217bbbe8cbd2affc312450523e.tar.bz2
drakx-backup-do-not-use-092a51022843b9217bbbe8cbd2affc312450523e.tar.xz
drakx-backup-do-not-use-092a51022843b9217bbbe8cbd2affc312450523e.zip
move Xtest() and setMouseLive() out of c/stuff to xf86misc::main
so that we can use them (esp. setMouseLive) in standalone without making drakxtools-newt require xfree libs
Diffstat (limited to 'perl-install/mouse.pm')
-rw-r--r--perl-install/mouse.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm
index ed166a48f..62617feb7 100644
--- a/perl-install/mouse.pm
+++ b/perl-install/mouse.pm
@@ -424,7 +424,10 @@ sub change_mouse_live {
if (!$::testing) {
devices::make($mouse->{device});
symlinkf($mouse->{device}, "/dev/mouse");
- c::setMouseLive($ENV{DISPLAY}, $xId, $mouse->{nbuttons} < 3);
+ eval {
+ require xf86misc::main;
+ xf86misc::main::setMouseLive($ENV{DISPLAY}, $xId, $mouse->{nbuttons} < 3);
+ };
}
1;
}