Changeset 77937 in vbox
- Timestamp:
- Mar 28, 2019 1:15:12 PM (6 years ago)
- 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 1300 1300 void UIFrameBufferPrivate::sltCursorPositionChange() 1301 1301 { 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())) 1304 1310 { 1305 1311 /* Acquire cursor hotspot: */ … … 1462 1468 } 1463 1469 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())) 1466 1477 { 1467 1478 /* Acquire session cursor pixmap: */ … … 1565 1576 } 1566 1577 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())) 1569 1585 { 1570 1586 /* Acquire session cursor pixmap: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r77843 r77937 452 452 * We should hide host pointer in case of: 453 453 * 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. */ 456 455 if (uisession()->isMouseCaptured() || 457 uisession()->isValidCursorPositionPresent() ||458 456 (!uisession()->isPaused() && 459 457 uisession()->isMouseIntegrated() &&
Note:
See TracChangeset
for help on using the changeset viewer.