ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RP] feature request; change to defwinpos


From: Jonathan Walther
Subject: Re: [RP] feature request; change to defwinpos
Date: Sun Oct 14 14:44:02 2001

-----BEGIN PGP SIGNED MESSAGE-----

Thank you.  Appreciate that.  However, doing the "windows %n %i"
and grepping is quite bloaty when I want to translate a X id to
an rp id from within my C code.

If you would save code all around, instead of making the window
number (according to rp) be the optional argument to delete,
gravity, etc, make it be the X window id.  Shell scripts can
then do the grep thing, and people using xlib inside C code
can simply insert their window id.

Jonathan

On 14 Oct 2001, shawn wrote:
> > a ratpoison command that takes a X window id and returns its ratpoison
> > id
>
> ratpoison -c "windows %n %i"
>
> returns a list of window numbers and X11 window id's. grep for the one
> you want. boom. done.
>
> > for the defwinpos command to accept an additional argument, an
> > X window id, so that one can set the default position of a window
> > on a window by window basis from within the program that "owns"
> > the window.
>
> Just set the window's gravity with the 'gravity' command. from within
> the program do the above and grep for the window id, then set the
> gravity for the window. This is a bit of pain because you have to
> switch to that window. Which is why I'm about to allow add an optional
> argument, the window number, to delete, gravity, title and info...

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBO8oBCMK9HT/YfGeBAQE5sAP9H4jsMnnyXXDEyGSViTPyAyJxIf9pgoRJ
XwT/Ljpcq7ReVACSC3F1ph+IILE+yAZVhlj6r6JAf2+cMIdRrml5GY+yPJymgaom
0wE1Ov/engky3vte94kjVTUSMOgd41yJTJXiIyrT5TS/zfQQRYnJ/wowVzBFNzgv
bIo6YFRgFOQ=
=Kt0d
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]