stefansundin / altdrag

:file_folder: Easily drag windows when pressing the alt key. (Windows)
https://stefansundin.github.io/altdrag/
GNU General Public License v3.0
1.42k stars 94 forks source link

Resizing a window may steal focus forever #91

Open jwidar opened 6 years ago

jwidar commented 6 years ago

Thank you for AltDrag. I Just donated $20.

Sometimes when AltDrag-resizing a really laggy window, like Visual Studio, SSMS or Powerpoint, I find that the input is locked to that window, both keyboard and mouse. Clicking a different window does not release focus. I can move and resize other windows using altdrag even when they do not have focus but I can't interact in other ways.

I am using AltDrag Version 1.1, Windows 10 Enterprise. Some features locked down by IT, but I am local admin on my computer.

Ways to release the focus:

As I decided to report this problem, I also read about the Escape key to "stop AltDrag from doing whatever it is doing". This does not work.

Find my settings attached. (I am using Win-key instead of Alt, and some more aggressive snap margins)

AltDrag.zip

stefansundin commented 6 years ago

Hi there. Thank you very much for your donation!

Sorry to hear you are having issues though. I can't identify anything peculiar based on your configuration. I'm sorry, but I don't know what is causing it.

If anyone else is having this issue, please feel free to share your experience.

stefansundin commented 6 years ago

I had a thought this morning... Maybe it's related to the way that AltDrag sends WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE. Maybe for some reason it fails to send WM_EXITSIZEMOVE, and that's why it gets stuck in this weird state?

So here's the commit that added it: https://github.com/stefansundin/altdrag/commit/4d90661a757976fdaa0ac31d028f5d9313ea3114

If you want, you can try AltDrag v0.8, which is the version before this was added. Maybe you can confirm whether or not it still happens. https://github.com/stefansundin/altdrag/releases/tag/v0.8

Another thing you could try is to open AltDrag.ini and increase ResizeRate. It might make it look a bit laggier, but it might alleviate the problem. Increasing that value tells AltDrag to resize the window less often.

Hope it works! :)

jwidar commented 6 years ago

Thanks. I'll try to come back later with a comment. For starters, I'll try raising ResizeRate=5 to ResizeRate=100.