kvakulo / Switcheroo

The humble incremental-search task switcher for Windows
www.switcheroo.io
GNU General Public License v3.0
778 stars 121 forks source link

7-zip self-extracting archive's window not in the list #124

Open ferenczy opened 5 years ago

ferenczy commented 5 years ago

I just found out that 7-zip self-extracting archive's window is not listed in Switcheroo even though Windows' Alt-Tab sees it and allows me to switch to it.

That 7-zip's window looks like a dialog window, so that may be the reason. But it is displayed as a regular window with a button on the task bar:

screenshot

elig0n commented 5 years ago

Technically because that dialog box is recognized as a program withholding the ToolWindow style flag. A ToolWindow "is a window intended to be used as a floating toolbar". Although it is clearly not the case it somewhat does. I tried investigating into 7z GUI source code ( https://github.com/kornelski/7z ) to no avail. Maybe someone with better c plus plus windows API knowledge can spot why though.

In Switcheroo source code the following line is in charge of it and manually commenting it can serve to show it but also a load of other programs that should have been hidden.

AppWindow.cs: line 127: if (IsToolWindow()) return false;