Changeset 78319 in vbox for trunk/src/VBox
- Timestamp:
- Apr 26, 2019 10:18:29 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r77937 r78319 635 635 break; 636 636 } 637 #endif /* VBOX_WS_MAC */638 #ifdef VBOX_WS_MAC639 case QEvent::Enter:640 {641 /* Disable mouse event compression if we enter the VM view.642 * So all mouse events are registered in the VM.643 * Only do this if the keyboard/mouse is grabbed644 * (this is when we have a valid event handler): */645 if (machineLogic()->keyboardHandler()->isKeyboardGrabbed())646 darwinSetMouseCoalescingEnabled(false);647 break;648 }649 #endif /* VBOX_WS_MAC */650 case QEvent::Leave:651 #ifdef VBOX_WS_MAC652 {653 /* Enable mouse event compression if we leave the VM view.654 * This is necessary for having smooth resizing of the VM/other windows: */655 ::darwinSetMouseCoalescingEnabled(true);656 657 /* This event should be also processed using next 'case': */658 }659 RT_FALL_THRU();660 637 #endif /* VBOX_WS_MAC */ 661 638 case QEvent::MouseMove: … … 739 716 } 740 717 741 /* Send a pointer-out-of-range event if necessary: */742 if (!pHoveredWidget &&743 uisession()->isMouseSupportsAbsolute() &&744 uisession()->isMouseIntegrated())745 {746 mouse().PutMouseEventAbsolute(0x7FFFFFFF, 0x7FFFFFFF, 0, 0, 0);747 break;748 }749 750 718 /* This event should be also processed using next 'case': */ 751 719 } … … 808 776 break; 809 777 } 778 #ifdef VBOX_WS_MAC 779 case QEvent::Leave: 780 { 781 /* Enable mouse event compression if we leave the VM view. 782 * This is necessary for having smooth resizing of the VM/other windows: */ 783 ::darwinSetMouseCoalescingEnabled(true); 784 break; 785 } 786 case QEvent::Enter: 787 { 788 /* Disable mouse event compression if we enter the VM view. 789 * So all mouse events are registered in the VM. 790 * Only do this if the keyboard/mouse is grabbed 791 * (this is when we have a valid event handler): */ 792 if (machineLogic()->keyboardHandler()->isKeyboardGrabbed()) 793 darwinSetMouseCoalescingEnabled(false); 794 break; 795 } 796 #endif /* VBOX_WS_MAC */ 810 797 #ifdef VBOX_WS_WIN 811 798 case QEvent::Resize:
Note:
See TracChangeset
for help on using the changeset viewer.