RamonUnch / AltSnap

Maintained continuation of Stefan Sundin's AltDrag
GNU General Public License v3.0
2.25k stars 75 forks source link

Add a toggle Alt state option #385

Open RamonUnch opened 1 year ago

RamonUnch commented 1 year ago

The idea is to have a key that would toggle the Alt State so you could press it, make a drag and then press it again.

Unfortunately, the old version is also now having the same issue. I'm not sure why, but it no longer seems to work after the latest nvidia driver update (which also killed Gamestream permanently - requiring Sunshine).

Here's one potential solution - could you make it so that suspend/resume alt-snap also releases the hook on the window? Currently, if I suspend alt-snap and then resume it, it immediately resumes dragging the same window it was dragging before.

For Sunshine users, it would be possible to move something, then hit a hotkey to toggle suspend alt-snap to release the hold, then hit the hotkey again to resume alt-snap. If I could add that to my workflow, it would be a little annoying, but it would work.

Originally posted by @jet082 in https://github.com/RamonUnch/AltSnap/issues/380#issuecomment-1465107308

shodanx2 commented 1 year ago

What about hitting shift while holding alt, locking in the "alt" as far as altsnap is concerned

Alt+shift is an easy key combo to hit.

And the only thing I have ever seen using alt+shift is the windows language selector (which I personally disable)