[vlc-devel] [PATCH] qt: don't set the interface on top if the video will not be embedded

Steve Lhomme robux4 at ycbcr.xyz
Wed Mar 27 07:59:31 CET 2019


In that case the external video is the one that should be on top.
---
 modules/gui/qt/main_interface.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/main_interface.cpp b/modules/gui/qt/main_interface.cpp
index 82ce6e81a8..6f5c487304 100644
--- a/modules/gui/qt/main_interface.cpp
+++ b/modules/gui/qt/main_interface.cpp
@@ -148,7 +148,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ),
     b_plDocked = getSettings()->value( "MainWindow/pl-dock-status", true ).toBool();
 
     /* Should the UI stays on top of other windows */
-    b_interfaceOnTop = var_InheritBool( p_intf, "video-on-top" );
+    b_interfaceOnTop = var_InheritBool( p_intf, "video-on-top" ) &&
+                       var_InheritBool( p_intf, "embedded-video" );
 
 #ifdef QT5_HAS_WAYLAND
     b_hasWayland = QGuiApplication::platformName()
-- 
2.17.1



More information about the vlc-devel mailing list