Commit 744bf6f3 authored by Ludovic Fauvet's avatar Ludovic Fauvet Committed by Jean-Baptiste Kempf

Qt: fix a regression on Linux

Regression introduced in 9367ce0bSigned-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7a9193bb
...@@ -40,7 +40,14 @@ TimeTooltip::TimeTooltip( QWidget *parent ) : ...@@ -40,7 +40,14 @@ TimeTooltip::TimeTooltip( QWidget *parent ) :
// Tell Qt that it doesn't need to erase the background before // Tell Qt that it doesn't need to erase the background before
// a paintEvent occurs. This should save some CPU cycles. // a paintEvent occurs. This should save some CPU cycles.
setAttribute( Qt::WA_OpaquePaintEvent ); 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 ); setAttribute( Qt::WA_ShowWithoutActivating );
#endif
// Inherit from the system default font size -5 // Inherit from the system default font size -5
mFont = QFont( "Verdana", qMax( qApp->font().pointSize() - 5, 7 ) ); mFont = QFont( "Verdana", qMax( qApp->font().pointSize() - 5, 7 ) );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment