[vlc-commits] Qt: prevent focus stealing on seekbar tooltip

Jean-Baptiste Kempf git at videolan.org
Sat Nov 1 13:17:59 CET 2014


vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Nov  1 13:13:51 2014 +0100| [25febaf446477e880f69b407f74fe9d98c914689] | committer: Jean-Baptiste Kempf

Qt: prevent focus stealing on seekbar tooltip

Why be consistent, Qt?

Close #12671

(cherry picked from commit f35a1b8311d2a8ac12dc2f419157c35768865711)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=25febaf446477e880f69b407f74fe9d98c914689
---

 modules/gui/qt4/util/timetooltip.cpp |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt4/util/timetooltip.cpp b/modules/gui/qt4/util/timetooltip.cpp
index 48a6879..bb472d7 100644
--- a/modules/gui/qt4/util/timetooltip.cpp
+++ b/modules/gui/qt4/util/timetooltip.cpp
@@ -36,7 +36,11 @@ TimeTooltip::TimeTooltip( QWidget *parent ) :
     setWindowFlags( Qt::Window                  |
                     Qt::WindowStaysOnTopHint    |
                     Qt::FramelessWindowHint     |
-                    Qt::X11BypassWindowManagerHint );
+                    Qt::X11BypassWindowManagerHint
+#if HAS_QT5
+                    | Qt::WindowDoesNotAcceptFocus
+#endif
+                    );
 
     // Tell Qt that it doesn't need to erase the background before
     // a paintEvent occurs. This should save some CPU cycles.



More information about the vlc-commits mailing list