VirtualBox

Changeset 83307 in vbox


Ignore:
Timestamp:
Mar 17, 2020 1:03:59 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136480
Message:

FE/Qt: bugref:9692: Runtime UI: UIFrameBuffer: A fix for frame-buffer mouse-pointer functionality; No need to reset mouse pointer rectangle to null one since other side expects us to store it in-between requests to hide/show cursor.

File:
1 edited

Legend:

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

    r83306 r83307  
    13021302void UIFrameBufferPrivate::sltMousePointerShapeChange()
    13031303{
    1304     /* Do we have view and valid cursor position?
    1305      * Also, please take into account, we are not currently painting
    1306      * framebuffer cursor if mouse integration is supported and enabled. */
     1304    /* Call for a cursor area update in any case, whether we are drawing it or not: */
    13071305    if (   m_pMachineView
    1308         && !m_pMachineView->uisession()->isHidingHostPointer()
    1309         && m_pMachineView->uisession()->isValidPointerShapePresent()
    1310         && m_pMachineView->uisession()->isValidCursorPositionPresent()
    1311         && (   !m_pMachineView->uisession()->isMouseIntegrated()
    1312             || !m_pMachineView->uisession()->isMouseSupportsAbsolute()))
    1313     {
    1314         /* Call for a viewport update using known shape rectangle: */
     1306        && m_cursorRectangle.isValid())
    13151307        m_pMachineView->viewport()->update(m_cursorRectangle);
    1316     }
    1317     /* Don't forget to clear the rectangle in opposite case: */
    1318     else if (   m_pMachineView
    1319              && m_cursorRectangle.isValid())
    1320     {
    1321         /* Call for a viewport update: */
    1322         m_pMachineView->viewport()->update(m_cursorRectangle);
    1323         /* And erase the rectangle after all: */
    1324         m_cursorRectangle = QRect();
    1325     }
    13261308}
    13271309
     
    13731355             && m_cursorRectangle.isValid())
    13741356    {
    1375         /* Call for a viewport update: */
     1357        /* Call for a cursor area update: */
    13761358        m_pMachineView->viewport()->update(m_cursorRectangle);
    1377         /* And erase the rectangle after all: */
    1378         m_cursorRectangle = QRect();
    13791359    }
    13801360}
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