Commit 6ee30a0a authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Jean-Baptiste Kempf

Qt: Show TimeTooltip window without activating it on OS/2

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 5f0e2c0921d9ae4c942bfc801e421999d05d602e)
Signed-off-by: default avatarKO Myung-Hun <komh@chollian.net>
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c19dcec7
...@@ -41,9 +41,9 @@ TimeTooltip::TimeTooltip( QWidget *parent ) : ...@@ -41,9 +41,9 @@ TimeTooltip::TimeTooltip( QWidget *parent ) :
// 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 #if defined( Q_WS_WIN ) || defined( Q_WS_PM )
/* /*
- This attribute is required on Windows to avoid focus stealing of other windows. - This attribute is required on Windows and OS/2 to avoid focus stealing of other windows.
- When set on Linux the TimeTooltip appears behind the FSController in fullscreen. - When set on Linux the TimeTooltip appears behind the FSController in fullscreen.
*/ */
setAttribute( Qt::WA_ShowWithoutActivating ); setAttribute( Qt::WA_ShowWithoutActivating );
......
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