Commit 5c1129ef authored by Ludovic Fauvet's avatar Ludovic Fauvet Committed by Jean-Baptiste Kempf

Qt: Avoid focus stealing of the tooltip on Win32

Close #12060
Ref #12084

(cherry picked from commit 90c479c2e4c9f6d59db2230dfca67f7278e24b1b)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 539e6471
...@@ -33,12 +33,14 @@ ...@@ -33,12 +33,14 @@
TimeTooltip::TimeTooltip( QWidget *parent ) : TimeTooltip::TimeTooltip( QWidget *parent ) :
QWidget( parent ) QWidget( parent )
{ {
setWindowFlags( Qt::Window | setWindowFlags(
#if defined( Q_OS_WIN )
Qt::ToolTip
#else
Qt::Window |
Qt::WindowStaysOnTopHint | Qt::WindowStaysOnTopHint |
Qt::FramelessWindowHint | Qt::FramelessWindowHint |
Qt::X11BypassWindowManagerHint Qt::X11BypassWindowManagerHint
#if HAS_QT5
| Qt::WindowDoesNotAcceptFocus
#endif #endif
); );
......
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