VirtualBox

Changeset 50354 in vbox


Ignore:
Timestamp:
Feb 6, 2014 5:14:05 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92096
Message:

HID LEDs sync: Windows host: prevent sync loss when swithing between two VMs.

File:
1 edited

Legend:

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

    r50309 r50354  
    11021102                case QEvent::WindowActivate:
    11031103                {
     1104#ifdef Q_WS_WIN
    11041105                    /* We should save current lock states as *previous* and
    11051106                     * set current lock states to guest values we have,
    11061107                     * As we have no ipc between threads of different VMs
    1107                      * we are using 300ms timer as lazy sync timout: */
    1108                     //QTimer::singleShot(300, this, SLOT(sltSwitchKeyboardLedsToGuestLeds()));
    1109 
     1108                     * we are using 100ms timer as lazy sync timout: */
     1109                    keyboardHandler()->winSkipKeyboardEvents(true);
     1110                    QTimer::singleShot(100, this, SLOT(sltSwitchKeyboardLedsToGuestLeds()));
     1111#else /* Q_WS_WIN */
    11101112                    /* Trigger callback synchronously for now! */
    11111113                    sltSwitchKeyboardLedsToGuestLeds();
     1114#endif /* !Q_WS_WIN */
    11121115                    break;
    11131116                }
Note: See TracChangeset for help on using the changeset viewer.

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