Re: [dev] How to make R's windows floating?

From: bill lam <cbill.lam_AT_gmail.com>
Date: Mon, 25 May 2009 14:47:52 +0800

On Mon, 25 May 2009, Wu, Yue wrote:
> On Sun, May 24, 2009 at 09:51:59AM +0800, bill lam wrote:
> > On Sun, 24 May 2009, Wu, Yue wrote:
> > > Hi, I tried to make all of R[www.r-project.org] relative stuffs, like graph it
> > > produces by graphic device x11(), floating, the method I've tried are:
> > >
> > > { NULL, "R", NULL, 0, True },
> > > { NULL, "R*", NULL, 0, True },
> > > { NULL, NULL, "R", 0, True },
> > > { NULL, NULL, "R*", 0, True },
> > > { "R", NULL, NULL, 0, True },
> > > { "R*", NULL, NULL, 0, True },
> > >
> > > But all of them failed, what's wrong?
> >
> > use `xprop' to get the class name or instance name of R.
> > xprop
>
> I got this, but I don't know what's wrong with my configure, 'R*' should match it I think.
>
> WM_STATE(WM_STATE):
> window state: Normal
> icon window: 0x0
> WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW
> WM_NAME(STRING) = "R Graphics: Device 2 (ACTIVE)"
> WM_NORMAL_HINTS(WM_SIZE_HINTS):
> program specified location: 0, 0
> program specified size: 598 by 598

you need to grep the WM_CLASS, eg for gnumeric

WM_CLASS(STRING) = "Gnumeric", "Gnumeric"
   { "Gnumeric", NULL, NULL, 0, True },

usually they differ in cap case, gnumeric is an exception.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩292 杜牧  寄揚州韓綽判官
    青山隱隱水迢迢  秋盡江南草未凋  二十四橋明月夜  玉人何處教吹簫
Received on Mon May 25 2009 - 06:47:52 UTC

This archive was generated by hypermail 2.2.0 : Mon May 25 2009 - 07:00:02 UTC