VirtualBox

Ignore:
Timestamp:
Feb 19, 2014 6:20:21 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92356
Message:

HID LEDs sync for Windows: fix kbd input loss if sync is disabled.

File:
1 edited

Legend:

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

    r50510 r50513  
    11311131                     * As we have no ipc between threads of different VMs
    11321132                     * we are using 100ms timer as lazy sync timout: */
    1133                     keyboardHandler()->winSkipKeyboardEvents(true);
    1134                     QTimer::singleShot(100, this, SLOT(sltSwitchKeyboardLedsToGuestLeds()));
     1133                   
     1134                    /* On Windows host we should do that only in case if sync
     1135                     * is enabled. Otherwise, keyboardHandler()->winSkipKeyboardEvents(false)
     1136                     * won't be called in sltSwitchKeyboardLedsToGuestLeds() and guest
     1137                     * will loose keyboard input forever. */
     1138                    if (isHidLedsSyncEnabled())
     1139                    {
     1140                        keyboardHandler()->winSkipKeyboardEvents(true);
     1141                        QTimer::singleShot(100, this, SLOT(sltSwitchKeyboardLedsToGuestLeds()));
     1142                    }
    11351143#else /* Q_WS_WIN */
    11361144                    /* Trigger callback synchronously for now! */
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