Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp	(revision 30408)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp	(revision 30409)
@@ -1780,5 +1780,5 @@
         /* Disable mouse and keyboard event compression/delaying to make sure we *really* get all of the events. */
         ::CGSetLocalEventsSuppressionInterval(0.0);
-        setMouseCoalescingEnabled(false);
+        machineLogic()->mouseHandler()->setMouseCoalescingEnabled(false);
 
         /* Register the event callback/hook and grab the keyboard. */
Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp	(revision 30408)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp	(revision 30409)
@@ -29,4 +29,8 @@
 #include "UIMachineLogic.h"
 #include "UIMachineView.h"
+
+#ifdef Q_WS_MAC
+# include "VBoxUtils-darwin.h"
+#endif /* Q_WS_MAC */
 
 /* Factory function to create mouse-handler: */
@@ -196,4 +200,15 @@
            (uisession()->isMouseIntegrated() ? 0 : UIMouseStateType_MouseAbsoluteDisabled);
 }
+
+#ifdef Q_WS_MAC
+void UIMachineView::setMouseCoalescingEnabled(bool fOn)
+{
+    /* Enable mouse event compression if we leave the VM view.
+     * This is necessary for having smooth resizing of the VM/other windows.
+     * Disable mouse event compression if we enter the VM view.
+     * So all mouse events are registered in the VM.
+    ::darwinSetMouseCoalescingEnabled(fOn);
+}
+#endif /* Q_WS_MAC */
 
 /* Machine state-change handler: */
@@ -449,5 +464,5 @@
                     /* Enable mouse event compression if we leave the VM view.
                      * This is necessary for having smooth resizing of the VM/other windows: */
-                    ::darwinSetMouseCoalescingEnabled(true);
+                    setMouseCoalescingEnabled(true);
                     break;
                 }
@@ -459,5 +474,5 @@
                      * (this is when we have a valid event handler): */
                     if (m_views[uScreenId]->isKeyboardGrabbed())
-                        ::darwinSetMouseCoalescingEnabled(false);
+                        setMouseCoalescingEnabled(false);
                     break;
                 }
Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.h	(revision 30408)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.h	(revision 30409)
@@ -62,4 +62,12 @@
     int mouseState() const;
 
+#ifdef Q_WS_MAC
+    /* Enable mouse event compression if we leave the VM view.
+     * This is necessary for having smooth resizing of the VM/other windows.
+     * Disable mouse event compression if we enter the VM view.
+     * So all mouse events are registered in the VM.
+    void setMouseCoalescingEnabled(bool fOn);
+#endif /* Q_WS_MAC */
+
 signals:
 
