From plfjohnson at emory.edu  Thu Jun  7 21:05:17 2012
From: plfjohnson at emory.edu (Philip Johnson)
Date: Thu, 07 Jun 2012 15:05:17 -0400
Subject: [Rd] x11 icon and class
Message-ID: <4FD0FB6D.1090005@emory.edu>

The X11 device driver does not provide the X window manager with an icon 
(_NET_WM_ICON) or, under some circumstances, with a class (WM_CLASS). 
This hinders usability under the new stable version of Ubuntu, which has 
a (new) user interface centered around icons.

I am not sure if this was a conscious choice by r-core or simply a low 
priority.  In case of the latter, I attach a patch against R-devel (as 
of 6 June) that specifies:
   1) _NET_WM_ICON as a slightly tweaked version of Rlogo-5.png  (48x48 
pixels, circle filled-in with white to be legible; ARGB data hardcoded 
as a constant array in a new file "rlogo_icon.h").
   2) WM_CLASS (for reasons unclear to me, previously WM_CLASS was only 
set #ifndef USE_Xt)
l
As Ubuntu is the single most popular linux distribution, perhaps others 
will find this patch useful.  I have tested on both 32- and 64-bit 
versions of linux.

Regards,
Philip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: r_icon_class.patch
Type: text/x-patch
Size: 20839 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20120607/a174fe9f/attachment.bin>


[Rd] x11 icon and class
Philip Johnson