nthdimtech / signet-client

Client code for Signet and Signet HC
https://www.nthdimtech.com/signet
GNU General Public License v3.0
20 stars 8 forks source link

It is sometimes not possible to foreground Windows client with Signet button press #110

Closed nthdimtech closed 5 years ago

nthdimtech commented 5 years ago

This limited the usability of the device on Windows somewhat. It appears to not happen in all cases and does not occur on Windows 7. My theory is that it is an operating system feature to block malware from taking over a users screen without their permission. Perhaps there is a way to get Windows to honor the foreground request despite this feature.

nthdimtech commented 5 years ago

Fixed mostly by 87f7842. Windows will allow the window to be programmatically maximized but foregrounded when it is visible. The solution is to minimize the window in all cases where data is produced for another application but keep the button press dialog so the operation can be canceled and users can discover what the application and device are doing.