Changeset 30409 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
- Timestamp:
- Jun 24, 2010 4:11:27 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note:
See TracChangeset
for help on using the changeset viewer.