FVWM: Window parameters and current window

From: An Thi-Nguyen Le <anle_at_uiuc.edu>
Date: Thu, 26 Apr 2001 10:01:36 -0500

Version: 2.3.31

I've read the manpage on command expansion; I want to write something
like

    Function CenterWindow
    + I PipeRead 'echo Current Move $(($[vp.width]/2 - $[w.width]/2)) \
                                    $(($[vp.height]/2 - $[w.height]/2))'

However, I don't know how to associate a window with the command.
This merely tries to execute

   echo Current Move $(( 1280/2 - $[w.width] )) $(( 960/2 - $[w.height]/2 ))

*even* if there *is* a current window (e.g., a window that is focused,
not iconified, raised, etc.)

The example in the manpage also doesn't work, and suffers from the
same problem (if it is a problem):

    AddToFunc PrintDeskNumber
    + I Echo $$d $[page.nx] $c

will only print something like

    1 0 $c

again, even if there is a current window (focused, not iconified, raised, etc).

What am I getting wrong?


-- 
An Thi-Nguyen Le
|The more they over-think the plumbing the easier it is to stop up the drain.
--
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 Apr 26 2001 - 10:01:45 BST

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