- Timestamp:
- Mar 12, 2019 4:09:20 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 129302
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r76606 r77668 632 632 break; 633 633 } 634 #endif /* VBOX_WS_MAC */ 635 #ifdef VBOX_WS_MAC 636 case QEvent::Enter: 637 { 638 /* Disable mouse event compression if we enter the VM view. 639 * So all mouse events are registered in the VM. 640 * Only do this if the keyboard/mouse is grabbed 641 * (this is when we have a valid event handler): */ 642 if (machineLogic()->keyboardHandler()->isKeyboardGrabbed()) 643 darwinSetMouseCoalescingEnabled(false); 644 break; 645 } 646 #endif /* VBOX_WS_MAC */ 647 case QEvent::Leave: 648 #ifdef VBOX_WS_MAC 649 { 650 /* Enable mouse event compression if we leave the VM view. 651 * This is necessary for having smooth resizing of the VM/other windows: */ 652 ::darwinSetMouseCoalescingEnabled(true); 653 654 /* This event should be also processed using next 'case': */ 655 } 656 RT_FALL_THRU(); 634 657 #endif /* VBOX_WS_MAC */ 635 658 case QEvent::MouseMove: … … 713 736 } 714 737 738 /* Send a pointer-out-of-range event if necessary: */ 739 if (!pHoveredWidget && 740 uisession()->isMouseSupportsAbsolute() && 741 uisession()->isMouseIntegrated()) 742 { 743 mouse().PutMouseEventAbsolute(0x7FFFFFFF, 0x7FFFFFFF, 0, 0, 0); 744 break; 745 } 746 715 747 /* This event should be also processed using next 'case': */ 716 748 } … … 773 805 break; 774 806 } 775 #ifdef VBOX_WS_MAC776 case QEvent::Leave:777 {778 /* Enable mouse event compression if we leave the VM view.779 * This is necessary for having smooth resizing of the VM/other windows: */780 ::darwinSetMouseCoalescingEnabled(true);781 break;782 }783 case QEvent::Enter:784 {785 /* Disable mouse event compression if we enter the VM view.786 * So all mouse events are registered in the VM.787 * Only do this if the keyboard/mouse is grabbed788 * (this is when we have a valid event handler): */789 if (machineLogic()->keyboardHandler()->isKeyboardGrabbed())790 darwinSetMouseCoalescingEnabled(false);791 break;792 }793 #endif /* VBOX_WS_MAC */794 807 #ifdef VBOX_WS_WIN 795 808 case QEvent::Resize:
Note:
See TracChangeset
for help on using the changeset viewer.