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.39k stars 94 forks source link

Mouse click sometimes stop being registered after using Altdrag #150

Open jdt1 opened 2 years ago

jdt1 commented 2 years ago

Hi,

Let me begin by saying that I absolutely love Altdrag and couldn't image working without it anymore. Having said that, there is a minor issue that can be a bit annoying at times.

Sometimes, after using Altdrag for a while, Windows seems to stop registering or forwarding my mouse clicks. The only thing that helps is pressing ctrl + alt + delete. When I click in the blue ctrl + alt + delete menu, the first click doesn't do anything, but the second click works normally. As if the first click resets the mouse somehow. (I don't have any knowledge of how Windows handles mouse clicks and forwards them to the active application).

I haven't been able to find any robust way to replicate the issue, but it seems to happen if I use Altdrag too rapidly. Possibly the issue occurs when the targeted application is busy and not ready to handle the Altdrag action? Again, I don't understand the inner workings of how Windows handles the mouse.

I'm more than happy to provide any further information, do tests, or even do some digging in the code if someone could give me some pointers on where to look.

Cheers,

Jim

RamonUnch commented 2 years ago

This generally happens when switching between elevated and non elevated windows. It should not happen when AltDrag is elevated (look at the config). If it still does then is pressing ESC enough? Also you might want to give a try to my fork, I think I mostly fixed those kind of problems, if it still happen on your config, then I would be interested if you find a way to reproduce the bug.

jdt1 commented 2 years ago

Thanks for your reply.

I am always running AltDrag elevated to be able to drag the Windows system tools. I'll try pressing esc if it happens again. I'll also have a look at your fork, it looks interesting!