FVWM: FvwmEvent: destroy_window ; is a window transient?

From: Nicholas Paul Johnson <nickjohnson_at_virginia.edu>
Date: Sun, 23 May 2004 22:58:13 -0400 (EDT)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I have a function bound to the destroy_window event, whose purpose is to
focus another window automatically. I would like it to only do this if
the window being closed is not transient. Here is my original, which
works except that it does not distinguish between transients and
non-transients:

#---------------------------------\
DestroyFunc CycleLocally
AddToFunc CycleLocally
+ "I" Next (CurrentDesk, !Sticky) \
                        Function FocusAndRaise
+ "I" TestRC (0) Next (!Sticky) \
                        Function FocusAndRaise

*FvwmEvent: destroy_window \
        'Function CycleLocally'
#------------------------------------/


So, I tried this modification:

#----------------------------------\
*FvwmEvent: destroy_window \
        'Current (!Transient) Function CycleLocally'
#----------------------------------/

But that didn't work; the event seems to be called *after* the window has
disappeared.

How can I do this?

Thanks,
- --
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Nicholas Paul Johnson
  o nickjohnson \at\ virginia \dot\ edu
  o 3ebf10a7 subkeys.pgp.net
  o http://manjac.ath.cx/nick
  o "When all you've got is a hammer,
    everything looks like a nail.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Made with pgp4pine 1.75-6

iD8DBQFAsWTUfnGNDj6/EKcRAmh6AJ0SUSs7ojAKotHbYy9QkZx0DruP3QCfcQe4
o7ERkBYE+KEMT1iZTGMfweM=
=5tOk
-----END PGP SIGNATURE-----


--
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 May 24 2004 - 01:36:09 BST

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