News:

Congratulations!
 You've won the News Item Lottery! Your prize? Reading this news item! :)

[patch] gui window snap

Started by TurfIt, January 09, 2011, 08:17:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TurfIt

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.

prissi

What is edge snapping in laymens terms? This would help user to comment on that ...

TurfIt

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.

jamespetts

Seems like a good idea in principle :-)

jonasbb

#4
@prissi: would you insert this into ST?
I think this is a great patch.

Dwachs

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.

TurfIt

I see this has gone in as of r4175. Here's a patch against 4175 to reduce code duplication as per Dwachs suggestion.

Dwachs

#7
moved to 'considered' in order that this patch is not forgotten ;) thank you!

edit: anyway, the codechange is incorporated :)