Sometimes when I click the tray icon the main window is shown, but it is not active. I need to activate it by hand. This happens due to limitations of Windows platform described here: http://msdn.microsoft.com/en-us/library/windows/desktop/ms633539%28v=vs.85%29.aspx . But we can use a small hack with AttatchThreadInput() to force the main window be active. I use it in my Qt application with tray and everything works fine.
Sometimes when I click the tray icon the main window is shown, but it is not active. I need to activate it by hand. This happens due to limitations of Windows platform described here: http://msdn.microsoft.com/en-us/library/windows/desktop/ms633539%28v=vs.85%29.aspx . But we can use a small hack with AttatchThreadInput() to force the main window be active. I use it in my Qt application with tray and everything works fine.
Patch: http://pastebin.com/4ATATQWR
I didn't test it with Clementine, but it should work just fine.