Re: [Rd] X11 device windows are spawned with empty WM_NAME property

From: Drew Frank <ajfrank_at_ics.uci.edu>
Date: Fri, 17 Jun 2011 14:05:01 -0700

On Fri, Jun 17, 2011 at 1:57 PM, Drew Frank <ajfrank_at_ics.uci.edu> wrote:

> On Fri, Jun 17, 2011 at 7:26 AM, peter dalgaard <pdalgd_at_gmail.com> wrote:

>>
>> On Jun 17, 2011, at 15:32 , Prof Brian Ripley wrote:
>> >>>
>> >>> Is this behavior intended?  Would be it be reasonable to instead create
>> >>> windows with a generic name like "R Graphics" prior to updating them with
>> >>> the device number and active/inactive status?
>> >
>> > Yes, no.
>> >
>>
>> Well, "yes, maybe", I'd say. If the WM insists on looking at the title, it makes some pragmatic sense for the user to set it to a generic name that the WM can recognize.
>>
>> However, on revisiting this, the obvious fix/workaround is just to set
>>
>> X11.options(title="R Graphics: Device %d")
>>
>> and the user can do this in his/her startup files. No need to inflict it on every user with any WM.
>>
>> --
>> Peter Dalgaard
>> Center for Statistics, Copenhagen Business School
>> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
>> Phone: (+45)38153501
>> Email: pd.mes_at_cbs.dk  Priv: PDalgd_at_gmail.com
>>

Thank you Peter and Brian for your replies.  The X11.options workaround is effective, and I'd be happy to make use of it.

That said, after reading your replies I agree that the "correct" thing to do would be for the WM to match on WM_CLASS, which is currently not set.  I checked out the R-devel trunk and was preparing a patch to set WM_CLASS when I noticed that Brian already committed code to do this in r56008.  However, the code is wrapped in an "#ifndef USE_Xt", with the comment "/* For those too idle to make use of Xt (PR#14588) */". When I compile, USE_Xt is set so this code isn't executed and WM_CLASS is never set.  Is it supposed to be set somewhere else?

Thank you,
Drew



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 17 Jun 2011 - 21:07:36 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 19 Jun 2011 - 18:40:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive