VirtualBox

Changeset 38985 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 13, 2011 1:23:22 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: removed unneeded code in the keyboard handler which was causing compiler warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp

    r38928 r38985  
    15221522    int      iDummy3, iDummy4, iDummy5, iDummy6;
    15231523    unsigned uMask;
    1524     unsigned uKeyMaskNum = 0, uKeyMaskCaps = 0, uKeyMaskScroll = 0;
     1524    unsigned uKeyMaskNum = 0, uKeyMaskCaps = 0;
    15251525
    15261526    uKeyMaskCaps          = LockMask;
    15271527    XModifierKeymap* map  = XGetModifierMapping(QX11Info::display());
    15281528    KeyCode keyCodeNum    = XKeysymToKeycode(QX11Info::display(), XK_Num_Lock);
    1529     KeyCode keyCodeScroll = XKeysymToKeycode(QX11Info::display(), XK_Scroll_Lock);
    15301529
    15311530    for (int i = 0; i < 8; ++ i)
    1532     {
    15331531        if (keyCodeNum != NoSymbol && map->modifiermap[map->max_keypermod * i] == keyCodeNum)
    15341532            uKeyMaskNum = 1 << i;
    1535         else if (keyCodeScroll != NoSymbol && map->modifiermap[map->max_keypermod * i] == keyCodeScroll)
    1536             uKeyMaskScroll = 1 << i;
    1537     }
    15381533    XQueryPointer(QX11Info::display(), DefaultRootWindow(QX11Info::display()), &wDummy1, &wDummy2,
    15391534                  &iDummy3, &iDummy4, &iDummy5, &iDummy6, &uMask);
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