[Thread Prev][Thread Next]   >Date Index >Thread Index

Re: [wmx] wmx a winner? Window managers in BBC Internet Services.

chad - Thu Sep 20 20:16:00 2001


If you're looking for a place to steal code, and are willing to sully
your hands with twm derivatives, CTWM can do this, and worse:

       f.movepack
               This  function is like f.move except that it tries
               to avoid overlapping of windows. When  the  moving
               window  begin  to overlap with another window, the
               move is stopped. If you go too far over the  other
               window  (more that MovePackResistance pixels), the
               move is resumed and the moving window can  overlap
               with  the  other  window.  Useful  to pack windows
               closely.

       f.movepush
               This function is like f.move except that it  tries
               to  avoid  overlapping of windows. When the moving
               window begin to overlap with another  window,  the
               other window is pushed. If you go too far over the
               other window (more  that  MovePackResistance  pix-
               els),  there  is no push and the moving window can
               overlap with the other window. Only  available  if
               OpaqueMove is active.

       f.pack string
               Where string is either : "right", "left", "top" or
               "bottom" The current window is moved in the speci-
               fied   direction  until  it  reaches  an  obstacle
               (either another window, or the screen border). The
               pointer follows the window. Example :

There's more, actually.

The only thing worse than this I've ever seen is a very old gwm
configuration written by a friend called ``bumpercar windows''; it
kept track of the mass, velocity, and inertia of windows.  It was
pretty wacky.

chad



Next: