On 14 Apr 2003 17:50:11 +0200, Dominik Vogt wrote:
> 
>   AddToFunc enter_handler
>   + I autohide $0 FvwmButtons 500 SW
>   #               ^           ^   ^
>   #               |           |   |___  Shade direction (optional)
>   #               |           |_______  Hide delay
>   #               |___________________  Unique window name/resource
> 
>   AddToFunc autohide
>   + I WindowId $0 ($1) Deschedule $0
>   + I WindowId $0 ($1) ThisWindow (shaded) WindowShade off
>   + I CondCase (!Match) All (!shaded, $1) autohide_hide $$$$$$$w $2 $3
> 
>   AddToFunc autohide_hide
>   + I Deschedule $0
>   + I Schedule $1 $0 WindowShade $2
> 
>   AddToFunc StartFunction
>   + I Module FvwmAuto FvwmAutohide -passid -menter enter_handler

This is nice. Just a note, this requires the latest cvs to run.
I am not quite sure why the number of dollars is 7 instead of 8 here.

Anyway, here is a more short and understandable version of the whole
thing (all functions have one parameter less and only one dollar):

  AddToFunc enter_handler
  + I autohide FvwmTaskBar 500 SW
  #            ^           ^   ^
  #            |           |   |___  Shade direction (optional)
  #            |           |_______  Hide delay
  #            |___________________  Unique window name/resource

  AddToFunc autohide
  + I ThisWindow ($0) Deschedule $[w.id]
  + I ThisWindow ($0, shaded) WindowShade off
  + I Cond (!Match) All ($0, !shaded) autohide_hide $1 $2

  AddToFunc autohide_hide
  + I Deschedule $[w.id]
  + I Schedule $0 $[w.id] WindowShade $1

  AddToFunc StartFunction
  + I Module FvwmAuto FvwmAutohide -menter enter_handler

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 [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to