Changeset 32875 in vbox
- Timestamp:
- Oct 1, 2010 4:54:27 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 66353
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/X11/XKeyboard-new.cpp
r29654 r32875 30 30 static unsigned gfByLayoutOK = 1; 31 31 static unsigned gfByTypeOK = 1; 32 static unsigned gfByXkbOK = 1; 32 33 33 34 /** … … 188 189 bool initXKeyboard(Display *dpy, int (*remapScancodes)[2]) 189 190 { 190 X11DRV_InitKeyboard(dpy, &gfByLayoutOK, &gfByTypeOK, remapScancodes); 191 X11DRV_InitKeyboard(dpy, &gfByLayoutOK, &gfByTypeOK, &gfByXkbOK, 192 remapScancodes); 191 193 /* It will almost always work to some extent */ 192 194 return true; … … 198 200 void doXKeyboardLogging(Display *dpy) 199 201 { 200 if (( gfByLayoutOK != 1) && (1 == gfByTypeOK))202 if (((1 == gfByTypeOK) || (1 == gfByXkbOK)) && (gfByLayoutOK != 1)) 201 203 dumpLayout(dpy); 202 if (( 1 == gfByLayoutOK) && (gfByTypeOK != 1))204 if (((1 == gfByLayoutOK) || (1 == gfByXkbOK)) && (gfByTypeOK != 1)) 203 205 dumpType(dpy); 204 if ((gfByLayoutOK != 1) && (gfByTypeOK != 1) )206 if ((gfByLayoutOK != 1) && (gfByTypeOK != 1) && (gfByXkbOK != 1)) 205 207 { 206 208 LogRel(("Failed to recognize the keyboard mapping or to guess it based on\n"
Note:
See TracChangeset
for help on using the changeset viewer.