VirtualBox

Changeset 62154 in vbox for trunk/src


Ignore:
Timestamp:
Jul 11, 2016 10:51:34 AM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8151: X11: Runtime UI: Missed few facts of the intended logic, fixing it (s.a. r108605).

File:
1 edited

Legend:

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

    r62119 r62154  
    396396        free(pGrabReply);
    397397
     398        /* Successfully captured, stop delayed capture attempts: */
     399        m_idxDelayedKeyboardCaptureView = -1;
     400
    398401# endif /* QT_VERSION >= 0x050000 */
    399402#else
     
    409412        /* Store new keyboard-captured state value: */
    410413        m_fIsKeyboardCaptured = true;
    411 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000
    412         /* Successfully captured, stop delayed capture attempts: */
    413         m_idxDelayedKeyboardCaptureView = -1;
    414 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */
    415414
    416415        /* Notify all the listeners: */
     
    421420void UIKeyboardHandler::releaseKeyboard()
    422421{
     422#if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000
     423    /* If we haven't captured the keyboard by now it is too late: */
     424    m_idxDelayedKeyboardCaptureView = -1;
     425#endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */
     426
    423427    /* Do NOT release the keyboard if it is already released: */
    424428    if (!m_fIsKeyboardCaptured)
     
    506510        /* Store new keyboard-captured state value: */
    507511        m_fIsKeyboardCaptured = false;
    508 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000
    509         /* If we haven't captured the keyboard by now it is too late: */
    510         m_idxDelayedKeyboardCaptureView = -1;
    511 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */
    512512
    513513        /* Notify all the listeners: */
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