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

From: Wu, Yue <vanopen_AT_gmail.com>
Date: Mon, 25 May 2009 15:08:13 +0800

On Mon, May 25, 2009 at 02:47:52PM +0800, bill lam wrote:
> 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.

I run xprop, it produces:
> xprop WM_CLASS
WM_CLASS: not found.

Why my output doesn't contain the WM_CLASS field? And I think 'R*' can match
the WM_NAME too, but it doesn't actually.

-- 
Hi,
Wu, Yue
Received on Mon May 25 2009 - 07:08:13 UTC

This archive was generated by hypermail 2.2.0 : Mon May 25 2009 - 07:24:01 UTC