Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Zones >> Use center most zone when overlapping #405

Closed
weaverinva opened this issue Mar 22, 2023 · 20 comments
Closed

[Feature Request] Zones >> Use center most zone when overlapping #405

weaverinva opened this issue Mar 22, 2023 · 20 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@weaverinva
Copy link

Hello there. Great great product. Thank you for your service to the community.

I would rather use this than FancyZones. The idea to use the Test windows works well to save a layout.....

However, when I use overlapping windows, the choser gets confused. It wants to combine multiple zones. Could this be configurable in the .ini? I would like it to chose the center most test windows from my mouse cursor and only join two or more if it is center most for those zones. It would require some triangulation but would really work well when I want top and bottom, four corners, and two central on the same monitor. I can do this with fancyzones.

Thank you for considering.
Snag_db19c8

@RamonUnch
Copy link
Owner

I am not sure I understand,
By default if the cursor is close to two zones, it will extend the Window to the two zones, However you can change this behavior by setting the InterZone value to 0 in the [Zones] section of the ini file, in this case the window will only snap to a single zone, as soon as your cursor enters the zone, and you will need to use the Ctrl key to extend to several zones.

@RamonUnch RamonUnch added the enhancement New feature or request label Mar 22, 2023
@RamonUnch
Copy link
Owner

Ok, I see what you mean actually you were taking about overlapping zones, this is an interesting concept on which I did not work.

It should not be hard to implement indeed, I will see what I can do after the next stable release.

@RamonUnch RamonUnch added the good first issue Good for newcomers label Mar 22, 2023
@weaverinva
Copy link
Author

weaverinva commented Mar 22, 2023 via email

@weaverinva
Copy link
Author

weaverinva commented Mar 22, 2023 via email

@RamonUnch
Copy link
Owner

RamonUnch commented Mar 22, 2023

Actually implementation is straightforward so I added already an option:

Add this option in In the [Zones] section:

ZSnapMode=1
; Zone snapping strategy
; Set to 0 to snap to the zones pointed by the cursor (default).
; Set to 1 to snap to the zone which center is the nearest from the cursor

There is always an interzone tolerance to allow to snap to two zones but in your specific case it might be useless.
Use this build of AltSnap.exe+hooks.dll (quit altsnap and replace the old files).

AltSnap1.60rc2_x64.zip
AltSnap1.60rc2_i386.zip

@weaverinva
Copy link
Author

weaverinva commented Mar 22, 2023 via email

@weaverinva
Copy link
Author

weaverinva commented Mar 23, 2023 via email

@RamonUnch
Copy link
Owner

RamonUnch commented Mar 23, 2023

give me a copy of yur ini file so that I can test it.

Also, what is layoutzones=0? I got rid of that.

This was probably LayoutNumber, it is because AltSnap supports multiple snap layouts, so it must remember which was the last selected one.

@RamonUnch
Copy link
Owner

Use this one, it might fix your issue.

AltSnap1.60rc3_x64.zip

Also be sure not to set a too large value to InterZone because the new strategy has a way to use the value that is slightly different.

@weaverinva
Copy link
Author

weaverinva commented Mar 23, 2023 via email

@weaverinva
Copy link
Author

weaverinva commented Mar 23, 2023 via email

@RamonUnch
Copy link
Owner

Could you give more details?
I am unable to reproduce, obviously!
Could you give a copy of your ini file?
You can zip it and attach it in a post.

@weaverinva
Copy link
Author

weaverinva commented Mar 23, 2023 via email

@weaverinva
Copy link
Author

weaverinva commented Mar 23, 2023 via email

@weaverinva
Copy link
Author

weaverinva commented Mar 23, 2023 via email

@weaverinva

This comment was marked as off-topic.

@RamonUnch
Copy link
Owner

If it tend to snap to too many zones at tye same time, decrease again the InterZone value, setting it to 0 mean that the window will snap to only one zone which is probably whet you want if you use may overlapping zones.

@weaverinva
Copy link
Author

weaverinva commented Mar 23, 2023 via email

@RamonUnch
Copy link
Owner

1.60 is released (same than rc3)

@weaverinva
Copy link
Author

weaverinva commented Mar 24, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants