On 25 Jan 2001 16:42:50 -0600, Von Welch wrote:
>
> Actually I just figured out a solution, if I do the following it
> works (xemacs frames all get moved to the current desk):
>
> # start copy
> *FvwmEventPassId
> *FvwmEvent add_window AddWindowFunc
>
> AddToFunc AddWindowFunc
> + "I" WindowId $0 ("emacs") MoveToDesk $d
> #end
>
> However, if instead I use the following, which is what I had been
> trying, (with the same FvwmEvent configuration), it does not work (all
> emacs frames appear on desk 0):
>
> # start
> AddToFunc AddWindowFunc
> + "I" WindowId $0 ("emacs") MoveToDesk 0 $d
> #end
>
> I understand why the first works, but I'm not sure why the second one
> doesn't work.
Due to the current way that FVWM expands $d, it is expanded to 0 (or
whatever your desk was when the function was defined).
If you want $d to be expanded at function execution time, you should
escape it in functions - $$d. Then both examples should work.
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 Thu Jan 25 2001 - 23:51:25 GMT