Changeset 30409 in vbox
- Timestamp:
- Jun 24, 2010 4:11:27 AM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r30408 r30409 1780 1780 /* Disable mouse and keyboard event compression/delaying to make sure we *really* get all of the events. */ 1781 1781 ::CGSetLocalEventsSuppressionInterval(0.0); 1782 setMouseCoalescingEnabled(false);1782 machineLogic()->mouseHandler()->setMouseCoalescingEnabled(false); 1783 1783 1784 1784 /* Register the event callback/hook and grab the keyboard. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r30408 r30409 29 29 #include "UIMachineLogic.h" 30 30 #include "UIMachineView.h" 31 32 #ifdef Q_WS_MAC 33 # include "VBoxUtils-darwin.h" 34 #endif /* Q_WS_MAC */ 31 35 32 36 /* Factory function to create mouse-handler: */ … … 196 200 (uisession()->isMouseIntegrated() ? 0 : UIMouseStateType_MouseAbsoluteDisabled); 197 201 } 202 203 #ifdef Q_WS_MAC 204 void UIMachineView::setMouseCoalescingEnabled(bool fOn) 205 { 206 /* Enable mouse event compression if we leave the VM view. 207 * This is necessary for having smooth resizing of the VM/other windows. 208 * Disable mouse event compression if we enter the VM view. 209 * So all mouse events are registered in the VM. 210 ::darwinSetMouseCoalescingEnabled(fOn); 211 } 212 #endif /* Q_WS_MAC */ 198 213 199 214 /* Machine state-change handler: */ … … 449 464 /* Enable mouse event compression if we leave the VM view. 450 465 * This is necessary for having smooth resizing of the VM/other windows: */ 451 ::darwinSetMouseCoalescingEnabled(true);466 setMouseCoalescingEnabled(true); 452 467 break; 453 468 } … … 459 474 * (this is when we have a valid event handler): */ 460 475 if (m_views[uScreenId]->isKeyboardGrabbed()) 461 ::darwinSetMouseCoalescingEnabled(false);476 setMouseCoalescingEnabled(false); 462 477 break; 463 478 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.h
r30408 r30409 62 62 int mouseState() const; 63 63 64 #ifdef Q_WS_MAC 65 /* Enable mouse event compression if we leave the VM view. 66 * This is necessary for having smooth resizing of the VM/other windows. 67 * Disable mouse event compression if we enter the VM view. 68 * So all mouse events are registered in the VM. 69 void setMouseCoalescingEnabled(bool fOn); 70 #endif /* Q_WS_MAC */ 71 64 72 signals: 65 73
Note:
See TracChangeset
for help on using the changeset viewer.