Patch implements window edge snapping for moving and resizing. Snap distance configurable in Display Settings dialog. Setting to 0 disables this love it/hate it feature.
What is edge snapping in laymens terms? This would help user to comment on that ...
When moving a window's position around the screen, if it's border (edge) comes close to another window's border, the moving window will jump (snap) over to align the borders. When working with multiple open windows on the screen, this allows the user to quickly tile them without gaps/overlaps.
Seems like a good idea in principle :-)
@prissi: would you insert this into ST?
I think this is a great patch.
I did some minor changes (moving variable declaration a bit). I still have the feeling that those doubled snap-checks can be moved into one function to reduce code duplication. But otherwise the patch looks good.
I see this has gone in as of r4175. Here's a patch against 4175 to reduce code duplication as per Dwachs suggestion.
moved to 'considered' in order that this patch is not forgotten ;) thank you!
edit: anyway, the codechange is incorporated :)