From 1dad9ad051c124424812967e7569462a6c6b3238 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 14 Jul 2016 17:40:52 +0200 Subject: stop installing/configuring vboxmouse (mga#18917) VBox rely on evdev (kernel) + libinput (userspace) like everyone these days. VMs must just use USB tablet as input device (which is now the default) --- lib/Xconfig/xfree.pm | 2 +- lib/mouse.pm | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/Xconfig/xfree.pm b/lib/Xconfig/xfree.pm index 8c1aeff..100e47e 100644 --- a/lib/Xconfig/xfree.pm +++ b/lib/Xconfig/xfree.pm @@ -131,7 +131,7 @@ sub set_mice { sub _is_mouse { my ($entry) = @_; my $Driver = val($entry->{Driver}); - member($Driver, qw(mouse vboxmouse)) || $Driver eq 'evdev' && !val($entry->{XkbLayout}); + $Driver eq 'mouse' || $Driver eq 'evdev' && !val($entry->{XkbLayout}); } sub _new_mouse_sections { my ($raw_X, @Drivers) = @_; diff --git a/lib/mouse.pm b/lib/mouse.pm index ecae2ca..ef1d272 100644 --- a/lib/mouse.pm +++ b/lib/mouse.pm @@ -86,7 +86,6 @@ sub _all_mice() { [ [ 7, 'ps/2', 'ExplorerPS/2', N_("Any PS/2 & USB mice") ], [ 7, 'ps/2', 'ExplorerPS/2', N_("Force evdev") ], #- evdev is magically handled in mouse::select() if_(detect_devices::is_xbox(), [ 5, 'ps/2', 'IMPS/2', N_("Microsoft Xbox Controller S") ]), - if_(detect_devices::is_virtualbox(), [ 7, 'ps/2', 'vboxmouse', N_("VirtualBox mouse") ]), ] ], N_("none") => @@ -295,9 +294,7 @@ sub detect { my @wacom = _probe_usb_wacom_devices(); $modules_conf->get_probeall("usb-interface") and eval { modules::load('usbhid') }; - if (detect_devices::is_virtualbox()) { - fullname2mouse("Universal|VirtualBox mouse"); - } elsif (my @mice = grep { $_->{Handlers}{mouse} } detect_devices::getInputDevices_and_usb()) { + if (my @mice = grep { $_->{Handlers}{mouse} } detect_devices::getInputDevices_and_usb()) { my @synaptics = map { { ALPS => $_->{ALPS} }; } grep { $_->{Synaptics} || $_->{ALPS} } @mice; @@ -351,7 +348,7 @@ sub set_xfree_conf { my @mice = map { { - ($_->{Protocol} eq 'vboxmouse' ? "Driver" : "Protocol") => $_->{Protocol}, + Protocol => $_->{Protocol}, Device => devices::make($_->{device}), if_($_->{Emulate3Buttons} || $_->{EmulateWheel}, Emulate3Buttons => undef, Emulate3Timeout => 50), if_($_->{EmulateWheel}, EmulateWheel => undef, EmulateWheelButton => 2), @@ -393,7 +390,6 @@ sub various_xfree_conf { my $pkgs = [ if_($mouse->{synaptics}, ['x11-driver-input-synaptics', "$inputdrvpath/synaptics_drv.so"]), if_($mouse->{evdev_mice}, ['x11-driver-input-libinput', "$inputdrvpath/evdev_drv.so"]), - if_($mouse->{Protocol} eq 'vboxmouse', ['x11-driver-input-vboxmouse', "$inputdrvpath/vboxmouse_drv.so"]), if_(@{$mouse->{wacom}}, ['x11-driver-input-wacom', "$inputdrvpath/wacom_drv.so"]), ]; $do_pkgs->ensure_files_are_installed($pkgs, 1); -- cgit v1.2.1