[vlc-devel] [PATCH] Qt Systray should react to double click, not simple click, on Windows

Daniel Marth danielmarth at gmx.at
Tue Dec 14 01:59:00 CET 2010

This patch adds an preprocessor-if to only react to single mouse-clicks on 
non-windows operating systems. So the visibility only changes on double-
The patch is for ticket #2068 and was created as a part of a GCI-task 
 modules/gui/qt4/main_interface.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp 
index 88bf4d4..1eeef81 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -1027,7 +1027,9 @@ void MainInterface::handleSystrayClick(
     switch( reason )
+#ifndef Q_WS_WIN
         case QSystemTrayIcon::Trigger:
         case QSystemTrayIcon::DoubleClick:
 #ifdef Q_WS_MAC
             QVLCMenu::updateSystrayMenu( this, p_intf );

More information about the vlc-devel mailing list