VirtualBox

Changeset 69273 in vbox for trunk


Ignore:
Timestamp:
Oct 25, 2017 10:22:08 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
118591
Message:

FE/Qt: Fix for bugref:8922. On X11, not releasing the keyboard grap in case of guru was causing mouse clicks to be ineffective.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

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

    r68315 r69273  
    12031203
    12041204                /* Release keyboard: */
    1205                 if (isSessionRunning())
     1205                if (isSessionRunning() || isSessionStuck())
    12061206                    releaseKeyboard();
    12071207                /* And all pressed keys: */
     
    19041904}
    19051905
     1906bool UIKeyboardHandler::isSessionStuck()
     1907{
     1908    return uisession()->isStuck();
     1909}
     1910
    19061911UIMachineWindow* UIKeyboardHandler::isItListenedWindow(QObject *pWatchedObject) const
    19071912{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.h

    r68315 r69273  
    173173    bool viewHasFocus(ulong uScreenId);
    174174    bool isSessionRunning();
     175    bool isSessionStuck();
    175176
    176177    UIMachineWindow* isItListenedWindow(QObject *pWatchedObject) const;
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