[vlc-commits] gui: qt: prevent fullscreen controller from stealing focus

Filip Roséen git at videolan.org
Wed Jul 18 18:34:19 CEST 2018


vlc | branch: master | Filip Roséen <filip at atch.se> | Mon Jul 16 05:26:30 2018 +0200| [d60312d3ad4c4e27f3455b4f579999b826d3948c] | committer: Hugo Beauzée-Luyssen

gui: qt: prevent fullscreen controller from stealing focus

A widget will (per default) receive focus when it is displayed,
something which is not ideal for our fullscreen controller (as it may
result in VLC grabbing focus from whatever window the user is actually
interested in at the time).

fixes #8712

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 modules/gui/qt/components/controller.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/components/controller.cpp b/modules/gui/qt/components/controller.cpp
index 04926a2df2..254ded051f 100644
--- a/modules/gui/qt/components/controller.cpp
+++ b/modules/gui/qt/components/controller.cpp
@@ -806,7 +806,8 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi
 
     vout.clear();
 
-    setWindowFlags( Qt::ToolTip );
+    setWindowFlags( Qt::Tool | Qt::FramelessWindowHint );
+    setAttribute( Qt::WA_ShowWithoutActivating );
     setMinimumWidth( FSC_WIDTH );
     isWideFSC = false;
 



More information about the vlc-commits mailing list