- Timestamp:
- Oct 26, 2007 1:19:46 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/XKeyboard.h
r4875 r5512 35 35 // returns the number of keysyms per keycode (only valid after initXKeyboard()) 36 36 int getKeysymsPerKeycode(); 37 // Called after release logging is started, in case initXKeyboard wishes to log 38 // anything 39 void doXKeyboardLogging(Display *dpy); 37 40 38 41 #endif // __XKeyboard_h__ -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r5352 r5512 45 45 #if defined(Q_WS_X11) 46 46 #include <X11/Xlib.h> 47 #include <XKeyboard.h> 47 48 #endif 48 49 … … 2993 2994 break; 2994 2995 } 2996 #ifdef Q_WS_X11 2997 case CEnums::Starting: 2998 { 2999 /* The keyboard handler may wish to do some release logging 3000 on startup. Tell it that the logger is now active. */ 3001 doXKeyboardLogging(this->x11Display()); 3002 break; 3003 } 3004 #endif 2995 3005 default: 2996 3006 break; -
trunk/src/VBox/Frontends/VirtualBox/src/linux/XKeyboard-new.cpp
r5507 r5512 23 23 #include <VBox/log.h> 24 24 #include "keyboard.h" 25 26 static bool gInitStatus = false; 25 27 26 28 /** … … 76 78 static void dumpLayout(Display *display) 77 79 { 78 LogRel((" \nYour keyboard layout does not appear to fully supported by VirtualBox. "80 LogRel(("Your keyboard layout does not appear to fully supported by VirtualBox. " 79 81 "If you would like to help us improve the product, please submit a " 80 82 "bug report and attach this logfile. Please note that the following " … … 134 136 bool initXKeyboard(Display *dpy) 135 137 { 136 int rc = X11DRV_InitKeyboard(dpy); 137 // if (0 == rc) 138 if (0 != X11DRV_InitKeyboard(dpy)) 139 { 140 /* The layout found was optimal. */ 141 gInitStatus = true; 142 } 143 return true; 144 } 145 146 /** 147 * Do deferred logging after initialisation 148 */ 149 void doXKeyboardLogging(Display *dpy) 150 { 151 if (!gInitStatus) 138 152 { 139 153 dumpLayout(dpy); 140 154 } 141 return true;142 155 } 143 156
Note:
See TracChangeset
for help on using the changeset viewer.