Re: FVWM: fvwm-2.0.46 question: annoying xterm style...

From: <gensch_at_zk3.dec.com>
Date: Fri, 22 May 1998 10:43:14 -0400 (EDT)

On 26 May, Tigran Aivazian wrote:

> whenever I make an xterm (nxterm, xterm-color, etc) active either by
> selecting from the TaskList or by clicking on it through the FvwmPager I
> want it's window to come on top instead of letting FvwmButtons stay there.
> I always have to click on the caption to bring it to the top -- which is
> slightly annoying.

First create two useful functions in your .fvwm2rc:

    DestroyFunc "FocusAndWarp"
    AddToFunc "FocusAndWarp" \
      "I" Raise
    + "I" Focus
    + "I" Iconify -1
    + "I" WarpToWindow 50 50

    DestroyFunc "RunAndFocus"
    AddToFunc "RunAndFocus" \
      "I" Exec $1 $2 $3 $4 $5 $6 $7 $8 $9
    + "I" Next [$0] FocusAndWarp

Next, in your FvwmButtons configuration, create a button for your
xterm as follows:

    *FvwmButtons(Title xterm-myhost, Action "RunAndFocus xterm-myhost \
                /usr/bin/X11/xterm -title xterm-myhost")

-- 
(void) lar3ry();                                      gensch_at_zk3.dec.com
     "Sometimes it happens.  People just explode.  Natural causes."
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Tue May 26 1998 - 08:01:10 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST