[comp.windows.x] Autoraise delay in twm?

jsantos@cr.bull.com (Jim Santos) (05/13/91)

	Is there any way with twm to set the amount of time a cursor
must be in a window that has autoraise turned on before the window
actually raises.  The way it is set by default, I keep accidentally
raising windows that I must go through to get to other windows.

Thanks

sm2@sequent.cc.hull.ac.uk (Simon Marshall) (05/17/91)

On 13 May 91 16:53:35 GMT, jsantos@cr.bull.com (Jim Santos) writes:

| Is there any way with twm to set the amount of time a cursor must be in a
| window that has autoraise turned on before the window actually raises.  The
| way it is set by default, I keep accidentally raising windows that I must go
| through to get to other windows.

	Were there any solutions to this?  Sorry, but mail to Jim bounced.

whj@stehekin.cs.washington.edu (Warren Jessop) (05/22/91)

The patches described below have been put on the following anonymous
ftp sites:

      shrimp.cs.washington.edu, in pub/twm.raisedelay.patch.Z
      export.lcs.mit.edu, in contrib/twm.raisedelay.patch.Z

These patches to twm modify the AutoRaise feature by adding a
a new "variable," RaiseDelay.  RaiseDelay is (approximately) the
number of milliseconds that the pointer should remain at rest before
the window it's in is raised.  The default is 0, so adding these
patches will not affect the way twm operates unless you add a

   RaiseDelay <milliseconds>

to your .twmrc file and <milliseconds> is greater than 0.  400
milliseconds works well.

Using twm with AutoRaise and RaiseDelay allows you to "skip over"
windows you don't want raised while moving the pointer to one you do
want raised.

There is one additional tiny change:  You can specify AutoRaise with
no modifiers, which indicates that you want *all* windows raised, not
just a bracketed list.

The patches are based on MIT X11R4 with fixes 1-18 applied.  They have
also been applied successfully (but by hand) to vtwm.

If anyone's interested I also have RaiseDelay patches for olwm.

     Warren Jessop, University of Washington, whj@cs.washington.edu