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 | |
parent | f04690773fe230e3b8227d4c7b539915ac3f51fc (diff) | |
download | drakx-backup-do-not-use-eebc7c1f986f79de3e953717898d134923c26be6.tar drakx-backup-do-not-use-eebc7c1f986f79de3e953717898d134923c26be6.tar.gz drakx-backup-do-not-use-eebc7c1f986f79de3e953717898d134923c26be6.tar.bz2 drakx-backup-do-not-use-eebc7c1f986f79de3e953717898d134923c26be6.tar.xz drakx-backup-do-not-use-eebc7c1f986f79de3e953717898d134923c26be6.zip |
(createXconf) set mouse driver as 'vmmouse' for vmware (#49654)
Diffstat (limited to 'perl-install/install')
-rw-r--r-- | perl-install/install/NEWS | 1 | ||||
-rw-r--r-- | perl-install/install/gtk.pm | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 923721a94..b156bd260 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,5 +1,6 @@ - fix final banner - handle partition starting after 1To +- set mouse driver as 'vmmouse' for vmware (#49654) - update XFCE preview Version 12.30 - 21 April 2009 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" |