tnodir / fort

Fort Firewall for Windows
GNU General Public License v3.0
1.11k stars 97 forks source link

Opening, an already opened Fort (through CMD or a Launcher) doesn't bring Fort/My Fort to the foreground, only the menu. #180

Closed Emi-Emi-Emi closed 5 months ago

Emi-Emi-Emi commented 6 months ago

go to terminal and type "%programfiles%\fort firewall\fortfirewall.exe"

In my case My fort doesn't get opened in the foreground, only the menu is.

The keyboard doesn't work in Fort's menu either, to at least hit enter on something, so you are forced to use the mouse or alt+tab go to Fort that way to be able to select something with the keyboard, this is because Fort i snot the active window so in the case of terminal using arrows just go through the command history, also, the menu just stays floating on the screen until you click something on it as well, so it doesn't go away on its own or anything when clicking out or something.

image

tnodir commented 6 months ago

Fixed by 80fe138b.

But it can fail to activate a window on 1-st open. Then you have to activate it by Alt+Tab.

tnodir commented 6 months ago

Please check the v3.10.7-test3.

Emi-Emi-Emi commented 6 months ago

It seems like while it is better, but seems like it behaves were, sometimes opening with PowerToys Run will open it okay, sometimes open in background, just like opening from desktop icon or CMD.

Even if it was opened from Tray icon, it will fail, and then I restart, then it opens fine after opening though the floating menu, then it fails somewhere else.

https://github.com/tnodir/fort/assets/152097351/a757b6ff-213b-4200-adee-b956ecf808e2

I used desktop icon after recording video and it opened fine, so it is pretty random when it will open in the background, so it is better than before now it opens in the foreground as expected 95% of the time, sometimes it still goes for foreground sometimes it stays background but it is surely better and more consistent 👍

Maybe screen recording also helped, since it is like 'on top' of all windows, but seems better without it.

tnodir commented 6 months ago

Please check the v3.10.7-test4.

It'll now always bring the window to top. But you have to press Alt+Tab to actually activate it, when needed.

Emi-Emi-Emi commented 5 months ago

Works much better, but the problem now is with My Fort menu and the Auto Show Menu, when you click on the menu, the menu now stays on top of other Fort windows, Auto Show Menu disabled, works great though. image

tnodir commented 5 months ago

the problem now is with My Fort menu and the Auto Show Menu, when you click on the menu, the menu now stays on top of other Fort windows

Fixed by f7302c78.

tnodir commented 5 months ago

Please check the v3.10.7-test6.

Emi-Emi-Emi commented 5 months ago

Seems to work great now! 👍 Alt+tab still has to be pressed to activate keyboard, but only once the first time Fort is opened, and then it seems to work great afterwards. Fort opens fine in the foreground, and auto show menu is not causing issues being on top and acting weird.

thanks!