VirtualBox

Changeset 77937 in vbox


Ignore:
Timestamp:
Mar 28, 2019 1:15:12 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9378: Runtime UI: Do not show framebuffer cursor if mouse integration both supported and enabled.

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

Legend:

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

    r77842 r77937  
    13001300void UIFrameBufferPrivate::sltCursorPositionChange()
    13011301{
    1302     /* Do we have view and valid cursor position? */
    1303     if (m_pMachineView && m_pMachineView->uisession()->isValidCursorPositionPresent())
     1302    /* Do we have view and valid cursor position?
     1303     * Also, please take into account, we are not currently painting
     1304     * framebuffer cursor if mouse integration is supported and enabled. */
     1305    if (   m_pMachineView
     1306        && m_pMachineView->uisession()->isValidPointerShapePresent()
     1307        && m_pMachineView->uisession()->isValidCursorPositionPresent()
     1308        && (   !m_pMachineView->uisession()->isMouseIntegrated()
     1309            || !m_pMachineView->uisession()->isMouseSupportsAbsolute()))
    13041310    {
    13051311        /* Acquire cursor hotspot: */
     
    14621468    }
    14631469
    1464     /* Paint cursor if it has valid shape and position: */
    1465     if (m_pMachineView->uisession()->isValidPointerShapePresent() && m_pMachineView->uisession()->isValidCursorPositionPresent())
     1470    /* Paint cursor if it has valid shape and position.
     1471     * Also, please take into account, we are not currently painting
     1472     * framebuffer cursor if mouse integration is supported and enabled. */
     1473    if (   m_pMachineView->uisession()->isValidPointerShapePresent()
     1474        && m_pMachineView->uisession()->isValidCursorPositionPresent()
     1475        && (   !m_pMachineView->uisession()->isMouseIntegrated()
     1476            || !m_pMachineView->uisession()->isMouseSupportsAbsolute()))
    14661477    {
    14671478        /* Acquire session cursor pixmap: */
     
    15651576    }
    15661577
    1567     /* Paint cursor if it has valid shape and position: */
    1568     if (m_pMachineView->uisession()->isValidPointerShapePresent() && m_pMachineView->uisession()->isValidCursorPositionPresent())
     1578    /* Paint cursor if it has valid shape and position.
     1579     * Also, please take into account, we are not currently painting
     1580     * framebuffer cursor if mouse integration is supported and enabled. */
     1581    if (   m_pMachineView->uisession()->isValidPointerShapePresent()
     1582        && m_pMachineView->uisession()->isValidCursorPositionPresent()
     1583        && (   !m_pMachineView->uisession()->isMouseIntegrated()
     1584            || !m_pMachineView->uisession()->isMouseSupportsAbsolute()))
    15691585    {
    15701586        /* Acquire session cursor pixmap: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r77843 r77937  
    452452     * We should hide host pointer in case of:
    453453     * 1. mouse is 'captured' or
    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. */
     454     * 2. machine is NOT 'paused' and mouse is NOT 'captured' and 'integrated' and 'absolute' but host pointer is 'hidden' by the guest. */
    456455    if (uisession()->isMouseCaptured() ||
    457         uisession()->isValidCursorPositionPresent() ||
    458456        (!uisession()->isPaused() &&
    459457         uisession()->isMouseIntegrated() &&
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