VirtualBox

Changeset 19579 in vbox for trunk/src/VBox/Frontends/VBoxSDL


Ignore:
Timestamp:
May 11, 2009 12:56:58 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
47143
Message:

VBoxSDL: small delay when sending the hostkey prior to a mouse click

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r19239 r19579  
    25782578                            enmHKeyState = HKEYSTATE_NOT_IT;
    25792579                            ProcessKey(&EvHKeyDown1.key);
     2580                            /* ugly hack: small delay to ensure that the key event is
     2581                             * actually handled _prior_ to the mouse click event */
     2582                            RTThreadSleep(20);
    25802583                            break;
    25812584                        case HKEYSTATE_DOWN:
     
    25842587                            if (gHostKeySym2 != SDLK_UNKNOWN)
    25852588                                ProcessKey(&EvHKeyDown2.key);
     2589                            /* ugly hack: small delay to ensure that the key event is
     2590                             * actually handled _prior_ to the mouse click event */
     2591                            RTThreadSleep(20);
    25862592                            break;
    25872593                        default:
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