Changeset 42469 in vbox for trunk/src/VBox/Additions/x11/Installer
- Timestamp:
- Jul 31, 2012 6:58:12 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 79612
- Location:
- trunk/src/VBox/Additions/x11/Installer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/Installer/x11config15sol.pl
r32388 r42469 33 33 open(TMP, ">$temp") or die "Can't create $TMP: $!\n"; 34 34 35 my $have_mouse = 0;36 35 my $in_section = 0; 37 36 … … 41 40 { 42 41 my $section = lc($1); 43 if ( ($section eq "inputdevice") || ($section eq "device"))42 if ($section eq "device") 44 43 { 45 44 $in_section = 1; 46 }47 if ($section eq "serverlayout")48 {49 $in_layout = 1;50 45 } 51 46 } else { … … 53 48 { 54 49 $in_section = 0; 55 $in_layout = 0;56 50 } 57 51 } … … 59 53 if ($in_section) 60 54 { 61 if ($line =~ /^\s*driver\s+\"(?:mouse|vboxmouse)\"/i)62 {63 $line = " Driver \"vboxmouse\"\n Option \"CorePointer\"\n";64 $have_mouse = 165 }66 67 # Other drivers sending events interfere badly with pointer integration68 if ($line =~ /^\s*option\s+\"(?:alwayscore|sendcoreevents|corepointer)\"/i)69 {70 $line = "";71 }72 73 # Solaris specific: Use /dev/vboxguest for Xorg 1.5.3+74 if ($os_type =~ 'SunOS')75 {76 if ($line =~ /^\s*option\s+\"(?:device)\"\s+\"(?:\/dev\/kdmouse)\"/i)77 {78 $line = " Option \"Device\" \"\/dev\/vboxguest\"\n"79 }80 81 if ($line =~ /^\s*option\s+\"(?:device)\"\s+\"(?:\/dev\/mouse)\"/i)82 {83 $line = " Option \"Device\" \"\/dev\/vboxguest\"\n"84 }85 }86 87 55 if ($line =~ /^\s*driver\s+\"(?:fbdev|vga|vesa|vboxvideo|ChangeMe)\"/i) 88 56 { … … 90 58 } 91 59 } 92 if ($in_layout)93 {94 # Other drivers sending events interfere badly with pointer integration95 if ( $line =~ /^\s*inputdevice.*\"(?:alwayscore|sendcoreevents)\"/i)96 {97 $line = "";98 }99 }100 60 print TMP $line; 101 61 } 102 62 103 if (!$have_mouse) {104 print TMP "\n";105 print TMP "Section \"InputDevice\"\n";106 print TMP " Identifier \"VBoxMouse\"\n";107 print TMP " Driver \"vboxmouse\"\n";108 if ($os_type eq 'SunOS')109 {110 print TMP " Option \"Device\" \"\/dev\/vboxguest\"\n";111 }112 print TMP " Option \"CorePointer\"\n";113 print TMP "EndSection\n";114 }115 63 close(TMP); 116 64 -
trunk/src/VBox/Additions/x11/Installer/x11restore.pl
r32388 r42469 26 26 27 27 my $config_count = 0; 28 my $vboxpresent = "vbox mouse";28 my $vboxpresent = "vboxvideo"; 29 29 30 30 foreach $cfg (@cfg_files)
Note:
See TracChangeset
for help on using the changeset viewer.