Nikos Leonardos <nikos.leonar...@gmail.com> writes:

> Hello all--
>
> I run the application xboard in two different modes: (1) to
> connect to a chess server, and (2) to set up a position. I would
> like to have a different style for each mode.
>
> One way to do that would be to use the fact that the window name
> is different in each mode. It is "xboard" in mode (1) and it is
> "xboard: 69.36.243.188" in mode (2). However, this doesn't seem
> to be entirely true. I think what happens is that initially (at
> the time the style of the window is determined) the window name
> _is_ the same. 
>
> One way around that, is to use (the obsolete command)
> RecaptureWindow after the window name has changed. I don't like
> this because of the extra keystrokes I need to do.
>
> I would like to do that automatically, say through an
> fvwm-function that calls xboard and also sets the appropriate
> style. I tried something like the following, but it didn't work.
>
>  DestroyFunc FvwmFics
>  AddToFunc   FvwmFics
>  + I Exec exec $[TERM] -e /usr/games/bin/xboard -ics -icshost 69.36.243.188 
>  + I Wait "xboard: 69.36.243.188" 
>  + I All ("xboard: 69.36.243.188") WindowStyle NeverFocus, Title
>  + I UpdateStyles
>
> Thank you in advance for your time.

Perhaps the xboard developers could be persuaded to add a -name or
-wmname type option.

I don't think I saw a complete list of their X Resources.
Perhaps there is something that can be set that way.


-- 
Dan Espen

Reply via email to