[vlc-commits] Qt: Avoid focus stealing of the tooltip on Win32
Ludovic Fauvet
git at videolan.org
Thu Nov 27 12:38:11 CET 2014
vlc/vlc-2.2 | branch: master | Ludovic Fauvet <etix at videolan.org> | Thu Nov 27 12:34:33 2014 +0100| [5c1129eff740cef6e1358a8540622b4976a98b3f] | committer: Jean-Baptiste Kempf
Qt: Avoid focus stealing of the tooltip on Win32
Close #12060
Ref #12084
(cherry picked from commit 90c479c2e4c9f6d59db2230dfca67f7278e24b1b)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=5c1129eff740cef6e1358a8540622b4976a98b3f
---
modules/gui/qt4/util/timetooltip.cpp | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/util/timetooltip.cpp b/modules/gui/qt4/util/timetooltip.cpp
index bb472d7..574eca9 100644
--- a/modules/gui/qt4/util/timetooltip.cpp
+++ b/modules/gui/qt4/util/timetooltip.cpp
@@ -33,12 +33,14 @@
TimeTooltip::TimeTooltip( QWidget *parent ) :
QWidget( parent )
{
- setWindowFlags( Qt::Window |
+ setWindowFlags(
+#if defined( Q_OS_WIN )
+ Qt::ToolTip
+#else
+ Qt::Window |
Qt::WindowStaysOnTopHint |
Qt::FramelessWindowHint |
Qt::X11BypassWindowManagerHint
-#if HAS_QT5
- | Qt::WindowDoesNotAcceptFocus
#endif
);
More information about the vlc-commits
mailing list