VirtualBox

Changeset 77719 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Mar 15, 2019 10:16:28 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129367
Message:

FE/Qt: bugref:9376: Missed part of r119623 in UIConsoleEventHandler required to handle KVBoxEventType_OnCursorPositionChanged events.

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

Legend:

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

    r76606 r77719  
    4444    /** Notifies about mouse capability change to @a fSupportsAbsolute, @a fSupportsRelative, @a fSupportsMultiTouch and @a fNeedsHostCursor. */
    4545    void sigMouseCapabilityChange(bool fSupportsAbsolute, bool fSupportsRelative, bool fSupportsMultiTouch, bool fNeedsHostCursor);
     46    /** Notifies about guest request to change the cursor position to @a uX * @a uY.
     47      * @param  fContainsData  Brings whether the @a uX and @a uY values are valid and could be used by the GUI now. */
     48    void sigCursorPositionChange(bool fContainsData, unsigned long uX, unsigned long uY);
    4649    /** Notifies about keyboard LEDs change for @a fNumLock, @a fCapsLock and @a fScrollLock. */
    4750    void sigKeyboardLedsChangeEvent(bool fNumLock, bool fCapsLock, bool fScrollLock);
     
    174177        << KVBoxEventType_OnMousePointerShapeChanged
    175178        << KVBoxEventType_OnMouseCapabilityChanged
     179        << KVBoxEventType_OnCursorPositionChanged
    176180        << KVBoxEventType_OnKeyboardLedsChanged
    177181        << KVBoxEventType_OnStateChanged
     
    191195        << KVBoxEventType_OnCanShowWindow
    192196        << KVBoxEventType_OnShowWindow
    193         << KVBoxEventType_OnAudioAdapterChanged
    194         << KVBoxEventType_OnCursorPositionChanged;
     197        << KVBoxEventType_OnAudioAdapterChanged;
    195198
    196199    /* Register event listener for console event source: */
     
    215218    connect(m_pQtListener->getWrapped(), SIGNAL(sigMouseCapabilityChange(bool, bool, bool, bool)),
    216219            this, SIGNAL(sigMouseCapabilityChange(bool, bool, bool, bool)),
     220            Qt::DirectConnection);
     221    connect(m_pQtListener->getWrapped(), SIGNAL(sigCursorPositionChange(bool, unsigned long, unsigned long)),
     222            this, SIGNAL(sigCursorPositionChange(bool, unsigned long, unsigned long)),
    217223            Qt::DirectConnection);
    218224    connect(m_pQtListener->getWrapped(), SIGNAL(sigKeyboardLedsChangeEvent(bool, bool, bool)),
     
    375381            this, SIGNAL(sigMouseCapabilityChange(bool, bool, bool, bool)),
    376382            Qt::QueuedConnection);
     383    connect(m_pProxy, SIGNAL(sigCursorPositionChange(bool, unsigned long, unsigned long)),
     384            this, SIGNAL(sigCursorPositionChange(bool, unsigned long, unsigned long)),
     385            Qt::QueuedConnection);
    377386    connect(m_pProxy, SIGNAL(sigKeyboardLedsChangeEvent(bool, bool, bool)),
    378387            this, SIGNAL(sigKeyboardLedsChangeEvent(bool, bool, bool)),
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIConsoleEventHandler.h

    r76581 r77719  
    4949    /** Notifies about mouse capability change to @a fSupportsAbsolute, @a fSupportsRelative, @a fSupportsMultiTouch and @a fNeedsHostCursor. */
    5050    void sigMouseCapabilityChange(bool fSupportsAbsolute, bool fSupportsRelative, bool fSupportsMultiTouch, bool fNeedsHostCursor);
     51    /** Notifies about guest request to change the cursor position to @a uX * @a uY.
     52      * @param  fContainsData  Brings whether the @a uX and @a uY values are valid and could be used by the GUI now. */
     53    void sigCursorPositionChange(bool fContainsData, unsigned long uX, unsigned long uY);
    5154    /** Notifies about keyboard LEDs change for @a fNumLock, @a fCapsLock and @a fScrollLock. */
    5255    void sigKeyboardLedsChangeEvent(bool fNumLock, bool fCapsLock, bool fScrollLock);
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