From eebc7c1f986f79de3e953717898d134923c26be6 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 22 Apr 2009 12:36:14 +0000 Subject: (createXconf) set mouse driver as 'vmmouse' for vmware (#49654) --- perl-install/install/gtk.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'perl-install/install/gtk.pm') diff --git a/perl-install/install/gtk.pm b/perl-install/install/gtk.pm index 6aa6a8c95..73222f673 100644 --- a/perl-install/install/gtk.pm +++ b/perl-install/install/gtk.pm @@ -8,6 +8,7 @@ use mygtk2; use common; use lang; use devices; +use detect_devices; #-##################################################################################### #-INTERN CONSTANT @@ -263,7 +264,8 @@ sub createXconf { symlink("/tmp/stage2/etc/X11", "/etc/X11"); if ($Driver) { - output($file, sprintf(<<'END', $mouse_type, $Driver, $Driver eq 'fbdev' ? '"default"' : '"800x600" "640x480"')); + my ($mouse_driver, $mouse_protocol) = detect_devices::is_vmware() ? qw(vmmouse auto) : ('mouse', $mouse_type); + output($file, sprintf(<<'END', $mouse_driver, $mouse_protocol, $Driver, $Driver eq 'fbdev' ? '"default"' : '"800x600" "640x480"')); Section "ServerFlags" Option "AutoAddDevices" "False" EndSection @@ -281,7 +283,7 @@ EndSection Section "InputDevice" Identifier "Mouse" - Driver "mouse" + Driver "%s" Option "Protocol" "%s" Option "Device" "/dev/mouse" Option "ZAxisMapping" "4 5" -- cgit v1.2.1