fuhsjr00 / bug.n

Tiling Window Manager for Windows
GNU General Public License v3.0
3.34k stars 214 forks source link

Focus lost after closing Adobe Acrobat #219

Closed blokeley closed 5 years ago

blokeley commented 5 years ago

For most programs, using Win C closes the current window, and focus returns to the "previous" window (I think the one next down the stack).

However, when I close Adobe Acrobat using Win C, no window is then in focus and I have to use Alt Tab to select one.

Weird.

Versions:

joten commented 5 years ago

As far as I can see after looking through the code, bug.n is triggered by a shell message when the window is closed and wants to activate the last known active window on the current monitor/ view. Most likely Adobe Acrobat opens additional hidden windows, which get registered but cannot be activated afterwards.

blokeley commented 5 years ago

I think that Adobe Acrobat does not behave normally when it comes to window management (or much else like trying to run itself in the background all the time).

Another example is that opening a PDF from a file manager causes Adobe Acrobat to change the bug.n view to wherever the last Acrobat window was, and open the PDF in a new tab in that window. It is the only program I have found which causes bug.n to switch views.

I'll close this issue because I doubt that there is anything that bug.n can do about it.

joten commented 5 years ago

In the current version bug.n does not provide enough debugging information to see what Adobe Acrobat does; therefor there is not much, which can be done to remedy this issue.

Regarding the opening of a new file you may set the Config.ini line Config_onActiveHiddenWnds=tag, with which bug.n would not change the view, but would add the Adobe Acrobat window to the current view.