From d60312d3ad4c4e27f3455b4f579999b826d3948c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Ros=C3=A9en?= <filip@atch.se> Date: Mon, 16 Jul 2018 05:26:30 +0200 Subject: [PATCH] gui: qt: prevent fullscreen controller from stealing focus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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> --- 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 04926a2df2e7..254ded051fb5 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; -- GitLab