Changeset 24718 in vbox for trunk/src/VBox/Additions/x11
- Timestamp:
- Nov 17, 2009 11:28:14 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/Installer/x11config-new.pl
r24651 r24718 43 43 my $CFG; 44 44 my $xkbopts = ""; 45 my $kb_driver = ""; 45 46 if (open(CFG, $cfg)) 46 47 { … … 83 84 $xkbopts = $xkbopts . $line; 84 85 } 86 # If we find a keyboard driver, remember it 87 if ($line =~ /^\s*driver\s+\"(kbd|keyboard)\"/i) 88 { 89 $kb_driver = $1; 90 } 85 91 $line = "# " . $line; 86 92 } 87 93 print TMP $line; 94 } 95 96 if ($kb_driver ne "") 97 { 98 print TMP <<EOF; 99 Section "InputDevice" 100 Identifier "keyboard[0]" 101 Driver "$kb_driver" 102 $xkbopts Option "Protocol" "Standard" 103 Option "CoreKeyboard" 104 EndSection 105 EOF 88 106 } 89 107 … … 101 119 Option "ZAxisMapping" "4 5" 102 120 Option "CorePointer" 103 EndSection104 105 Section "InputDevice"106 Identifier "keyboard"107 Driver "keyboard"108 $xkbopts Option "Protocol" "Standard"109 Option "CoreKeyboard"110 121 EndSection 111 122 EOF … … 136 147 EndSection 137 148 138 Section "InputDevice"139 Identifier "keyboard[0]"140 Driver "kbd"141 $xkbopts Option "Protocol" "Standard"142 Option "CoreKeyboard"143 EndSection144 145 149 Section "ServerLayout" 146 150 Identifier "Layout[all]" 147 InputDevice "Keyboard[0]" "CoreKeyboard"148 151 InputDevice "Mouse[1]" "CorePointer" 149 152 InputDevice "Mouse[2]" "SendCoreEvents" … … 154 157 EOF 155 158 } 159 156 160 print TMP <<EOF; 157 161
Note:
See TracChangeset
for help on using the changeset viewer.