]> git.sesse.net Git - vlc/commitdiff
skins2(Win32): add a way to hide the popup menu on systray
authorErwan Tulou <erwan10@videolan.org>
Fri, 5 Mar 2010 14:10:53 +0000 (15:10 +0100)
committerErwan Tulou <erwan10@videolan.org>
Sat, 6 Mar 2010 10:15:19 +0000 (11:15 +0100)
Rightclicking on the vlc icon in systray displayed the popup menu,
but till now, there was no means to hide it without first executing
something from this menu

This patch uses leftclick as a way to hide this popupmenu

modules/gui/skins2/win32/win32_factory.cpp

index 1f1ba22f3eedf332290eb6a2466a2b43f8f2f619..f95d9f7b7e5f00da7dcae268452bf59c89bd431c 100644 (file)
@@ -86,6 +86,8 @@ LRESULT CALLBACK Win32Proc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
             if( (UINT)lParam == WM_LBUTTONDOWN )
             {
                 p_intf->p_sys->p_theme->getWindowManager().raiseAll();
+                CmdDlgHidePopupMenu aCmdPopup( p_intf );
+                aCmdPopup.execute();
             }
             else if( (UINT)lParam == WM_RBUTTONDOWN )
             {