From 092a51022843b9217bbbe8cbd2affc312450523e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sun, 8 Feb 2004 17:50:15 +0000 Subject: 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 --- perl-install/Xconfig/test.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'perl-install/Xconfig/test.pm') diff --git a/perl-install/Xconfig/test.pm b/perl-install/Xconfig/test.pm index 93ec31e6e..8a2ecc632 100644 --- a/perl-install/Xconfig/test.pm +++ b/perl-install/Xconfig/test.pm @@ -14,9 +14,10 @@ my $tmpconfig = "/tmp/Xconfig"; sub xtest { my ($display) = @_; - $::isStandalone ? - system("DISPLAY=$display /usr/X11R6/bin/xtest") == 0 : - c::Xtest($display); + eval { + require xf86misc::main; + xf86misc::main::Xtest($display); + }; } sub test { -- cgit v1.2.1