[comp.windows.x] Dragging with constraints

guido@cwi.nl (Guido van Rossum) (06/03/88)

I'd love to see the following implemented in a window manager.

When dragging a window's outline to move (or resize) it, require that
some extra "force" be exerted before the outline is allowed to overlap a
neighboring window, or to be dragged outside the screen.  This might
give the effect of windows "snapping" into place, neatly adjacent to
each other (probably a little distance should be kept, e.g., 2 pixels).

I understand there are some complexities in efficiently determining
whether a window tends to overlap another window, but with a reasonable
number of top-level windows around (< 25) this shouldn't be a problem.

Who bites?  (Tom, are you listening? :-)

--
Guido van Rossum, Centre for Mathematics and Computer Science (CWI), Amsterdam
guido@piring.cwi.nl or mcvax!piring!guido or guido%piring.cwi.nl@uunet.uu.net