VirtualBox

Changeset 50807 in vbox


Ignore:
Timestamp:
Mar 18, 2014 9:35:35 AM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: Mouse-handling: Do not try to activate hovered machine-window instantly, it's causing races and conflicts with Apple HIG.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h

    r50631 r50807  
    7474
    7575protected slots:
     76
     77    /** Sets the top-level widget containing this widget to be the active window. */
     78    void sltActivateWindow() { activateWindow(); }
    7679
    7780    /* Session event-handlers: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r50786 r50807  
    2222#include <QMouseEvent>
    2323#include <QTouchEvent>
     24#include <QTimer>
    2425
    2526/* GUI includes: */
     
    597598                        QApplication::activeWindow() != pWatchedWidget->window())
    598599                    {
    599                         /* Activating hovered machine window: */
    600                         pWatchedWidget->window()->activateWindow();
     600                        /* Activating hovered machine-window in 300msec: */
     601                        QTimer::singleShot(300, pWatchedWidget->window(), SLOT(sltActivateWindow()));
    601602#ifdef Q_WS_X11
    602603                        /* On X11 its not enough to just activate window if you
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette