I am trying to do simly functionality. When I click on tray icon:
-A- if app is hide > show
-B- if app is show and is NOT focus > focus it
-C- if app is show and focus > hide
Very simle but if you have focus app and you click on try icon, the focus is lost and now the taskbar is focused. So the B condition is true instead of C. So what with that?