Re: FVWM: match on root window enter

From: Tim Phipps <tim_phipps_at_bigfoot.com>
Date: Wed, 23 Feb 2000 09:14:53 +0000

Danny Dulai wrote:
>
> I need a function to execute if you have lost all focus, when FvwmEvent
> with FvwmEventPassID passes $0 as '0'.

I haven't tried this so it might not work but you could use the fact
that if FvwmEvent passes anything other than 0 it is a window id. If
the function you want to execute is called root_func this might work:

AddToFunc test_focus
+ I DestroyFunc root_focus
+ I AddToFunc root_focus I root_func
+ I WindowId $0 DestroyFunc root_focus
+ I AddToFunc root_focus I NOP
+ I root_focus

If $0 is a valid id then root_focus becomes (NOP), if it's 0 then
root_focus becomes (root_func, NOP).

Let us know if it works.
Cheers,
Tim.

>
> Any suggestions?
--
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 Wed Feb 23 2000 - 03:15:16 GMT

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