VirtualBox

Ignore:
Timestamp:
Mar 23, 2011 4:37:03 PM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: forward ported r70622 to trunk: make sure that the window is activated after any mouse click

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r36098 r36374  
    546546                    }
    547547
     548#ifdef Q_WS_X11
     549                    /* Make sure that we are focused after a click.  Rather
     550                     * ugly, but works around a problem with GNOME
     551                     * screensaver, which sometimes removes our input focus
     552                     * and gives us no way to get it back. */
     553                    if (pEvent->type() == QEvent::MouseButtonRelease)
     554                        pWatchedWidget->window()->activateWindow();
     555#endif /* Q_WS_X11 */
    548556                    /* Check if we should activate window under cursor: */
    549557                    if (!uisession()->isMouseCaptured() &&
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