Re: FVWM: FvwmEvent and Frame Id

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Tue, 27 Jul 2004 10:17:00 +0200

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:

  # assuming that the client window id is stored in the environment
  # variable WID:
  FID=`xwininfo -tree -id $WID |
    grep "Parent window" |
    sed -e "s/^.*: //" -e "s/ .*$//"
  `

It's a bit inefficient because it needs three external programs to
run.

Ciao

Dominik ^_^ ^_^

 --
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de


--
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 - 04:59:54 BST

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