I'm done testing snap.scm. This completes the
"window control"/"position/size" group of scheme files.
Changed behavior of snap routines to be what I expected.
Realized a potential advantage of the old way and so made
a public variable which controls which behavior you get.
The default is the new behavior. The difference is whether
snap will line up the left sides of two windows if they end
up close after the interactive move. The new behavior lines
them up, the old doesn't. Old snap will only line up the
left of one window with the right of another. Same deal for
top/bottom.
Here's the changelog:
* snap.scm: Changed name of 'snap-reset' to 'snap-disable'.
Made 'snap-reset' deprecated.
Added a few comments.
Changed name of internal function imeh to imfh to match the
name of the hook it gets installed into.
Enhanced so that windows will also snap to the inside of each
other (e.g. the left edge of a window will snap to the left
edge of another window). Added public variable
'snap-matches-inside-edges' to control whether to use the new
behavior or the old. Default is #t which uses the new behavior.
Enjoy.
The stuff left to test in the "window control" group is:
winops-menu, groups
constraints - might postpone checking this
hints (kde, gnome) - will probably punt on this for now since I
don't run either kde or gnome
virtual desk/viewports
Woohoo, over half done with this major section.
- Scott
|