diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-09-28 15:21:48 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-09-28 15:21:48 +0000 |
commit | e73922b5b019a5415f56cc4f3f504f4f35874bad (patch) | |
tree | 88cfcd3e4c1e97d6b1b9040dd4ab0567b82ce6ce /lib/Xconfig | |
parent | 03580c07c5a712562e05bd5cd948acdc9dbc041d (diff) | |
download | drakx-kbd-mouse-x11-e73922b5b019a5415f56cc4f3f504f4f35874bad.tar drakx-kbd-mouse-x11-e73922b5b019a5415f56cc4f3f504f4f35874bad.tar.gz drakx-kbd-mouse-x11-e73922b5b019a5415f56cc4f3f504f4f35874bad.tar.bz2 drakx-kbd-mouse-x11-e73922b5b019a5415f56cc4f3f504f4f35874bad.tar.xz drakx-kbd-mouse-x11-e73922b5b019a5415f56cc4f3f504f4f35874bad.zip |
add support for x11-driver-input-vboxmouse when inside a VirtualBox guest
Diffstat (limited to 'lib/Xconfig')
-rw-r--r-- | lib/Xconfig/xfree.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Xconfig/xfree.pm b/lib/Xconfig/xfree.pm index 6cf6df7..ab9d3b5 100644 --- a/lib/Xconfig/xfree.pm +++ b/lib/Xconfig/xfree.pm @@ -145,7 +145,7 @@ sub get_mice { } sub set_mice { my ($raw_X, @mice) = @_; - my @raw_mice = _new_mouse_sections($raw_X, map { $_->{Protocol} ? 'mouse' : 'evdev' } @mice); + my @raw_mice = _new_mouse_sections($raw_X, map { delete $_->{Driver} || ($_->{Protocol} ? 'mouse' : 'evdev') } @mice); mapn { my ($raw_mouse, $mouse) = @_; raw_import_section($raw_mouse, $mouse); @@ -155,7 +155,7 @@ sub set_mice { sub _is_mouse { my ($entry) = @_; my $Driver = val($entry->{Driver}); - $Driver eq 'mouse' || $Driver eq 'evdev' && !val($entry->{XkbLayout}); + member($Driver, 'mouse', 'vboxmouse') || $Driver eq 'evdev' && !val($entry->{XkbLayout}); } sub _new_mouse_sections { my ($raw_X, @Drivers) = @_; |