On 28 Aug 2002 13:21:03 -0400, Victor Eijkhout wrote:
>
> At 13:59 +0000 2002/08/28, Mikhael Goikhman wrote:
> >A small addition. FvwmBacker has a built-in support for checking for a
> >specific page, but if you want to use FvwmEvent you do need PipeRead.
>
> Checking for what page it is changing to, right? Sometimes I'd like
> to know additionally what page it is changing *from*.
Then you should keep the variable to store the old one.
Something like the following in the event handler function:
PipeRead ' do something with $[OLD_PAGE_NX] and $[OLD_PAGE_NY] '
# save the current page for the next event
SetEnv OLD_PAGE_NX $[page.nx]
SetEnv OLD_PAGE_NY $[page.ny]
If you really need such non-trivial functionality, you may consider to
write a small module in perl listening to M_NEW_PAGE and doing the 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 Wed Aug 28 2002 - 12:59:36 BST