VirtualBox

Changeset 5512 in vbox for trunk


Ignore:
Timestamp:
Oct 26, 2007 1:19:46 PM (17 years ago)
Author:
vboxsync
Message:

GUI/Linux host: if the user`s keyboard match does not fully match one in our list, dump their map to the release log with a request to send it to us

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/XKeyboard.h

    r4875 r5512  
    3535// returns the number of keysyms per keycode (only valid after initXKeyboard())
    3636int getKeysymsPerKeycode();
     37// Called after release logging is started, in case initXKeyboard wishes to log
     38// anything
     39void doXKeyboardLogging(Display *dpy);
    3740
    3841#endif // __XKeyboard_h__
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r5352 r5512  
    4545#if defined(Q_WS_X11)
    4646#include <X11/Xlib.h>
     47#include <XKeyboard.h>
    4748#endif
    4849
     
    29932994                    break;
    29942995                }
     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
    29953005                default:
    29963006                    break;
  • trunk/src/VBox/Frontends/VirtualBox/src/linux/XKeyboard-new.cpp

    r5507 r5512  
    2323#include <VBox/log.h>
    2424#include "keyboard.h"
     25
     26static bool gInitStatus = false;
    2527
    2628/**
     
    7678static void dumpLayout(Display *display)
    7779{
    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.  "
    7981            "If you would like to help us improve the product, please submit a "
    8082            "bug report and attach this logfile.  Please note that the following "
     
    134136bool initXKeyboard(Display *dpy)
    135137{
    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 */
     149void doXKeyboardLogging(Display *dpy)
     150{
     151    if (!gInitStatus)
    138152    {
    139153        dumpLayout(dpy);
    140154    }
    141     return true;
    142155}
    143156
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette