[vlc-commits] gui: qt: prevent fullscreen controller from stealing focus
Filip Roséen
git at videolan.org
Wed Jul 18 18:39:37 CEST 2018
vlc/vlc-3.0 | branch: master | Filip Roséen <filip at atch.se> | Mon Jul 16 05:26:30 2018 +0200| [ee8c6e5d79a585a78077ef337938e02b37e6ca4c] | 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>
(cherry picked from commit d60312d3ad4c4e27f3455b4f579999b826d3948c)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=ee8c6e5d79a585a78077ef337938e02b37e6ca4c
---
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 cb97d36510..04368a73fc 100644
--- a/modules/gui/qt/components/controller.cpp
+++ b/modules/gui/qt/components/controller.cpp
@@ -807,7 +807,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