Commit c96d14e1 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Hide/Show from taskBar for Windows.

Patch from Hannes Domani.
parent 3bc8eab6
......@@ -463,10 +463,24 @@ void MainInterface::toggleUpdateSystrayMenu()
if( isHidden() )
{
show();
activateWindow();
}
else
{
#ifdef WIN32
/* check if any visible window is above vlc in the z-order,
* but ignore the ones always on top */
WINDOWINFO wi;
HWND hwnd;
wi.cbSize = sizeof( WINDOWINFO );
for( hwnd = GetNextWindow( internalWinId(), GW_HWNDPREV );
hwnd && !IsWindowVisible( hwnd );
hwnd = GetNextWindow( hwnd, GW_HWNDPREV ) );
if( !hwnd || !GetWindowInfo( hwnd, &wi ) ||
(wi.dwExStyle&WS_EX_TOPMOST) )
#else
if( isActiveWindow() )
#endif
{
hide();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment