Are we sure this isn't a vlc bug? I have tracked the problem down to the below commit:
Changing the line in modules/gui/qt/components/controller.cpp:
from
+ setWindowFlags( Qt::Tool | Qt::FramelessWindowHint );
to
+ setWindowFlags( Qt::ToolTip | Qt::FramelessWindowHint );
seems to fix it for me. I also am not familiar with qt and so do not understand the difference between a Tool and a ToolTip is this change necessary?
Mon Jul 16 2018
Filip Roséen <
filip@atch.se>
gui: qt: prevent fullscreen controller from stealing focus
d60312d3ad4c4e27f3455b4f579999b826d3948c
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@beauzee.fr>
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;