[vlc-devel] [PATCH] Fix for Boss key not minimizing the player on full screen mode in linux

nicolas.legoueix77 at gmail.com nicolas.legoueix77 at gmail.com
Sun Apr 26 17:56:56 CEST 2020


From: Nicolas Legoueix <nicolas.legoueix77 at gmail.com>

Fix for the bug issue #21126 : https://trac.videolan.org/vlc/ticket/21126
In fullscreen mode on linux, using the boss key would only pause the player instead of minimizing completely, forcing the user to press it twice to get the desired effect.

---
 modules/gui/qt/main_interface.cpp | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/modules/gui/qt/main_interface.cpp b/modules/gui/qt/main_interface.cpp
index 259dcf7109..2968210bd4 100644
--- a/modules/gui/qt/main_interface.cpp
+++ b/modules/gui/qt/main_interface.cpp
@@ -1707,14 +1707,10 @@ void MainInterface::emitBoss()
 void MainInterface::setBoss()
 {
     THEMIM->pause();
-    if( sysTray )
-    {
+
+    showMinimized();
+    if(sysTray)
         hide();
-    }
-    else
-    {
-        showMinimized();
-    }
 }
 
 void MainInterface::emitRaise()
-- 
2.20.1



More information about the vlc-devel mailing list