summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnne Nicolas <ennael@mageia.org>2011-03-30 10:42:28 +0000
committerAnne Nicolas <ennael@mageia.org>2011-03-30 10:42:28 +0000
commit203061884129c1c4095ce2e674548fa168549a6e (patch)
treeae23cc0ba57876a4dc03093b5df9391124db7f9a
parent1ff02a2a6d65ccd9f2e3098627caf19bbccc0b11 (diff)
downloaddrakx-kbd-mouse-x11-203061884129c1c4095ce2e674548fa168549a6e.tar
drakx-kbd-mouse-x11-203061884129c1c4095ce2e674548fa168549a6e.tar.gz
drakx-kbd-mouse-x11-203061884129c1c4095ce2e674548fa168549a6e.tar.bz2
drakx-kbd-mouse-x11-203061884129c1c4095ce2e674548fa168549a6e.tar.xz
drakx-kbd-mouse-x11-203061884129c1c4095ce2e674548fa168549a6e.zip
evdev needs to be loaded before calling getInputDevices_and_usb
else it will lead to a crash (pterjan)
-rw-r--r--lib/mouse.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mouse.pm b/lib/mouse.pm
index 307a5b3..a7536a9 100644
--- a/lib/mouse.pm
+++ b/lib/mouse.pm
@@ -280,6 +280,10 @@ sub detect {
detect_devices::probe_category('input/tablet');
detect_devices::probe_category('input/touchscreen');
+ # evdev needs to be loaded before calling getInputDevices_and_usb
+ # else it will lead to a crash
+ eval { modules::load("evdev") };
+
my @wacom = _probe_usb_wacom_devices();
$modules_conf->get_probeall("usb-interface") and eval { modules::load('usbhid') };