Re: FVWM: setting up special windows on startup automatically

From: Cyprian Laskowski <cyp_at_swagbelly.net>
Date: Fri, 10 Aug 2001 05:36:47 -0700

Dominik Vogt <dominik.vogt_at_gmx.de> writes:
> When you run a command that needs a window to work on, the window
> is usually chosen from the context the function was invoked from.
> Usually, the context window is simply the window you clicked on,
> but it can be something else or even unset under some
> circumstances. This is why you need "Next FlipFocus" to focus the
> window, not just "FlipFocus".

Ah, yes! I knew it was something fundamental that I did not
understand. Thank you for the thorough explanation.

> I recommend doing this stuff in a separate function:
>
> Style BANG Sticky
>
> AddToFunc WaitAndFocusAndKeybind
> + I Wait $0
> + I Next ($0) FlipFocus
> + I Key $1 $2 $3 WindowId $w FlipFocus
>
> AddToFunc InitFunction
> + I Exec exec xmodmap $HOME/.xmodmaprc
> + I Exec exec xbiff -geometry 50x50+1080+5
> + I Exec exec xterm -font 7x13 -geometry 55x8+765+5 -T BANG
> + I WaitAndFocusAndKeybind BANG Return A 3
> + I Exec exec emacs -f eshell
> + I WaitAndFocusAndKeybind emacs Return A 3
>
Nice. I will try that when I get home.

Thanks very much,

cyp
--
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 Fri Aug 10 2001 - 08:30:23 BST

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