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

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


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

Qt: prevent focus stealing on seekbar tooltip

Why be consistent, Qt?

Close #12671

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

 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