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

From: bill lam <cbill.lam_AT_gmail.com>
Date: Mon, 25 May 2009 15:30:18 +0800

On Mon, 25 May 2009, Wu, Yue wrote:
> 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.

Sorry I don't know. However as a workaround you may patch dwm to
hardcode all window with title beginning with 'R' to float if that
what you want.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩209 李商隱  錦瑟
    錦瑟無端五十絃  一絃一柱思華年  莊生曉夢迷蝴蝶  望帝春心託杜鵑
    滄海月明珠有淚  藍田日暖玉生煙  此情可待成追憶  只是當時已惘然
Received on Mon May 25 2009 - 07:30:18 UTC

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