[vlc-devel] [PATCH] gui: qt: prevent fullscreen controller from stealing focus
Filip Roséen
filip at atch.se
Mon Jul 16 05:26:30 CEST 2018
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
---
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;
--
2.18.0
More information about the vlc-devel
mailing list