On 15 Apr 2002 13:09:29 -0400, larry.gensch_at_compaq.com wrote:
>
> On 15 Apr, Tom Alsberg wrote:
>
> > # For auto-raise:
> > *FvwmEvent: enter_window "Silent SelectiveRaise"
> > *FvwmEvent: leave_window "Silent SelectiveLower"
> >
> > # Functions to auto-raise / auto-lower only some specific windows:
> > DestroyFunc SelectiveRaise
> > AddToFunc SelectiveRaise
> > + I WindowId $0 (!raised "FvwmIconMan") Raise
> > + I WindowId $0 (!raised "FvwmButtons") Raise
> > + I WindowId $0 (!raised "xclock") Raise
> > + I WindowId $0 (!raised "xexec") Raise
> >
> > DestroyFunc SelectiveLower
> > AddToFunc SelectiveLower
> > + I WindowId $0 (raised "FvwmIconMan") Lower
> > + I WindowId $0 (raised "FvwmButtons") Lower
> > + I WindowId $0 (raised "xclock") Lower
> > + I WindowId $0 (raised "xexec") Lower
>
> Why not:
>
> Style "*" ClickToFocus, SloppyFocus
> Stlye "FvwmIconMan" FocusFollowsMouse
> Style "FvwmButtons" FocusFollowsMouse
> Style "xclock" FocusFollowsMouse
> Style "xexec" FocusFollowsMouse
>
> This should work in all fvwm2 versions from 2.2 onward.
I am not sure what this should mean, but I suppose this is suggested to
be used together with FvwmAuto, otherwise it just does not do Raise/Lower.
I don't think you may simulate raise on entering special windows and lower
on leaving them using FvwmAuto or FvwmEvent in 2.2.x or even 2.4.x. If you
think it is possible, post a full config. I think it is impossible,
because focus_change is not sent when there were no any focused window,
even if there is a new focus now. There are many situation when there is
no focus if FocusFollowsMouse is used. I don't know whether this may be
counted as a bug or a feature, but this is how it works in 2.4.x/2.5.x.
Your lines also enforce focus policies on all windows that is not needed
with enter_window/leave_window. I would use NeverFocus for special windows
not FocusFollowsMouse, and FvwmAuto does not work on NeverFocus windows.
Finally I suppose that you suggest either ClickToFocus or SloppyFocus in
the first line, not both, because one overwrites another.
Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon Apr 15 2002 - 15:52:27 BST