VirtualBox

Changeset 77843 in vbox


Ignore:
Timestamp:
Mar 22, 2019 8:16:26 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9376: Hide host mouse cursor when valid guest mouse coordinates provided via corresponding event.

File:
1 edited

Legend:

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

    r77668 r77843  
    452452     * We should hide host pointer in case of:
    453453     * 1. mouse is 'captured' or
    454      * 2. machine is NOT 'paused' and mouse is NOT 'captured' and 'integrated' and 'absolute' but host pointer is 'hidden' by the guest. */
     454     * 2. valid guest mouse cursor position provided to override host cursor with more actual coordinates
     455     * 3. machine is NOT 'paused' and mouse is NOT 'captured' and 'integrated' and 'absolute' but host pointer is 'hidden' by the guest. */
    455456    if (uisession()->isMouseCaptured() ||
     457        uisession()->isValidCursorPositionPresent() ||
    456458        (!uisession()->isPaused() &&
    457459         uisession()->isMouseIntegrated() &&
     
    526528    connect(uisession(), SIGNAL(sigMousePointerShapeChange()), this, SLOT(sltMousePointerShapeChanged()));
    527529    connect(this, SIGNAL(sigStateChange(int)), this, SLOT(sltMousePointerShapeChanged()));
     530
     531    /* Mouse cursor position state-change updater: */
     532    connect(uisession(), &UISession::sigCursorPositionChange, this, &UIMouseHandler::sltMousePointerShapeChanged);
    528533
    529534    /* Initialize: */
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