AltSnap icon indicating copy to clipboard operation
AltSnap copied to clipboard

Move to Zone extends the window instead when using Grid layout.

Open RamonUnch opened this issue 3 years ago • 7 comments
trafficstars

I have found an issue related to Move to Zone (using Grid layout). If the app is in a bottom zone, hitting the keyboard shortcut to move it to the top zone, it will actually extend to that zone instead of moving. Is this intended?

Originally posted by @zhichaoh in https://github.com/RamonUnch/AltSnap/issues/271#issuecomment-1255233194

RamonUnch avatar Sep 22 '22 16:09 RamonUnch

It is a bug, if you use UseZones=3+4 the option should still move and not extend, I will fix that.

Ideally it would move the window one grid step without resizing it if it is already snapped over several cells.

RamonUnch avatar Sep 22 '22 16:09 RamonUnch

@RamonUnch , great! Yes, My usezones=3+4. That will make AltSnap as convenient to use as dynamic tiling window manager like i3wm etc. With all the window manipulation capabilities, it will be the most powerful tool.

zhichaoh avatar Sep 22 '22 16:09 zhichaoh

AltSnap1.57test20_x64.zip AltSnap1.57test20_i386.zip

This one should fix the problem. You need to replace both hooks.dll and AltSnap.exe It is still not perfect, grid movement should be handled differently I think because current behavior can be annoying if grid cell is small. So more work will be needed but it will be for later.

RamonUnch avatar Sep 22 '22 16:09 RamonUnch

The fix works really well in my settings. Thank you for the immediate solution. Yes, small grids can be frustrating. I divided my 32" 4K monitor into 5x3 grids. Now I found that I have to actively move the mouse after sending it to a zone. This is because we only move windows under the mouse. Is there a way to move the active window instead so we don't have chase the window using mouse?

zhichaoh avatar Sep 22 '22 17:09 zhichaoh

Be sure to uncheck the Apply to the pointed window. (It should be off by default but I may be wrong.) image

RamonUnch avatar Sep 22 '22 17:09 RamonUnch

Note that this option applies to all keyboard shortcuts.

RamonUnch avatar Sep 22 '22 17:09 RamonUnch

That does the trick! Thanks!

zhichaoh avatar Sep 22 '22 19:09 zhichaoh