Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp	(revision 29981)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp	(revision 29982)
@@ -1079,5 +1079,10 @@
                     }
                 }
-                /* Else this event will be processed using next 'case': */
+
+                /* Check if we should activate window under cursor: */
+                if (machineWindowWrapper()->machineWindow() != QApplication::activeWindow())
+                    machineWindowWrapper()->machineWindow()->activateWindow();
+
+                /* This event should be also processed using next 'case': */
             }
             case QEvent::MouseButtonPress:
