Re: FVWM: FvwmEvent and Frame Id

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Tue, 27 Jul 2004 12:17:49 +0000

On 27 Jul 2004 10:17:00 +0200, Dominik Vogt wrote:
>
> On Sun, Jul 25, 2004 at 01:10:31AM -0400, Michael Guterl wrote:
> > *FvwmEvent: Cmd exec
> > *FvwmEvent: PassId
> > *FvwmEvent: enter_window '/home/squeegy/fadein'
> > *FvwmEvent: leave_window '/home/squeegy/fadeout'
> >
> > I am currently using this, but instead of having the WindowID passed
> > to the applications, is it possible to have the frameid passed
> > instead?
>
> You can't pass the frame window id at the moment, but you can make
> a shell script [using xwininfo -id]:

I hope that whoever solves this natively does not add PassFrameId option
to FvwmEvent. :) PassId option may be more or less obsolete.

Instead, the correct solution would be to add a new variable, i.e.:

  DestroyModuleConfig FvwmEvent: *
  *FvwmEvent: enter_window MyFadeIn
  *FvwmEvent: leave_window MyFadeOut

  AddToFunc MyFadeIn
  + I Exec exec /home/squeegy/fadein $[w.frame_id]

Alternativelly, if you know perl, then instead of these two scripts,
you may compose a simple module in perl that listens to enter_window
and leave_window events, and uses their frame_id argument.

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 Tue Jul 27 2004 - 07:20:36 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST