diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-04-22 12:36:14 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-04-22 12:36:14 +0000 |
commit | eebc7c1f986f79de3e953717898d134923c26be6 (patch) | |
tree | 825384b0d0c9273b348a35be9e4d71518a85f6b8 /perl-install/install/gtk.pm | |
parent | f04690773fe230e3b8227d4c7b539915ac3f51fc (diff) | |
download | drakx-eebc7c1f986f79de3e953717898d134923c26be6.tar drakx-eebc7c1f986f79de3e953717898d134923c26be6.tar.gz drakx-eebc7c1f986f79de3e953717898d134923c26be6.tar.bz2 drakx-eebc7c1f986f79de3e953717898d134923c26be6.tar.xz drakx-eebc7c1f986f79de3e953717898d134923c26be6.zip |
(createXconf) set mouse driver as 'vmmouse' for vmware (#49654)
Diffstat (limited to 'perl-install/install/gtk.pm')
-rw-r--r-- | perl-install/install/gtk.pm | 6 |
1 files changed, 4 insertions, 2 deletions
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" |