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

Periodically stops working, needs to restart #178

Open ajkessel opened 1 month ago

ajkessel commented 1 month ago

I've had a problem for a few years where after some time AltDrag stops working. It's still in the systray, but I can't bring anything up with right-click, and windows can't be alt-dragged. The workaround is to kill the process and restart it, but I'd really like to find out why this is happening and fix it. Is there anything I can do to help troubleshoot?

I'm on Windows 10 22H2 (19045.4894). I don't think there is anything odd in my ini file, but I've attached it here.

AltDrag.ini.txt

nigongzi001 commented 1 month ago

I have the same problem as you, my system is also win10, is there any solution?

ajkessel commented 1 month ago

I compiled from source and now I see this occasional error generated in the log:

N failed in file h, line 1504.
Error: T (0)

L

Not sure how to interpret that since the function and filename are not correct, but perhaps it's a clue to what's happening.

PowerToys24 commented 3 weeks ago

Глюченная программка AltDrag. Не реагирует на одновременное нажатие кнопки на клавиатуре и мыши для центрирования окна. Приходиться перезапускать программку. Жаль! Мимо.

RamonUnch commented 1 week ago

the hang bug was fixed a while back here https://github.com/stefansundin/altdrag/pull/133

basically on newer Windows versions when DPI changes, and when going out of sleep mode, the Explorer broadcasts the TaskBarCreated mesage. AltDrag then tries to re-create the tray in an infinite loop, but it cannot because the tray is already created.

ajkessel commented 1 week ago

This lead me to your fork -- thanks for the comment. It is a relief to see a version under more active development.