]> git.sesse.net Git - vlc/commitdiff
Qt: fix a regression on Linux
authorLudovic Fauvet <etix@videolan.org>
Thu, 29 Sep 2011 15:59:44 +0000 (17:59 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 30 Sep 2011 14:27:50 +0000 (16:27 +0200)
Regression introduced in 9367ce0b3a40851a656e136557347fe8e830770c

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/util/timetooltip.cpp

index 70ea91442dfd4ea5f436f09a0f46320f223abc38..01b393e8f371edd0f4db572bcb3062e9d1501f72 100644 (file)
@@ -40,7 +40,14 @@ TimeTooltip::TimeTooltip( QWidget *parent ) :
     // Tell Qt that it doesn't need to erase the background before
     // a paintEvent occurs. This should save some CPU cycles.
     setAttribute( Qt::WA_OpaquePaintEvent );
+
+#ifdef Q_WS_WIN
+    /*
+    - This attribute is required on Windows to avoid focus stealing of other windows.
+    - When set on Linux the TimeTooltip appears behind the FSController in fullscreen.
+    */
     setAttribute( Qt::WA_ShowWithoutActivating );
+#endif
 
     // Inherit from the system default font size -5
     mFont = QFont( "Verdana", qMax( qApp->font().pointSize() - 5, 7 ) );