On Thu, 1 Nov 2012, Carlos R. Mafra wrote:
On Thu, 1 Nov 2012 at 12:04:35 +0100, Rodolfo García Peñas wrote:
On Thu, 01 Nov 2012, BALATON Zoltan escribió:
According to the relevant standard this is what's intended:
http://standards.freedesktop.org/wm-spec/1.3/ar01s05.html
Patch is attached. Thanks for your replies.
According to the spec that Zoltan pointed out, there is also
_NET_WM_VISIBLE_ICON_NAME, which says:
If the Window Manager displays an icon name other than
_NET_WM_ICON_NAME the Window Manager MUST set this to the title
displayed in UTF-8 encoding.
Your patch falls in the category of using an "icon name other than
_NET_WM_ICON_NAME", so I think it must also set _NET_WM_VISIBLE_ICON_NAME, no?
Also I'm not sure it's correct according to the spec to use _NET_WM_NAME
instead of _NET_WM_ICON_NAME (although it does not prohibit that). What it
says in my understanding is that it should fall back to use WM_ICON_NAME
if _NET_WM_ICON_NAME is not set. Is this the case currently? WM_NAME and
WM_ICON_NAME on the other hand seem to have no relationship. If
WM_ICON_NAME is also unset it may use some default like the application
class that seems to be the default in Motif and maybe Xt but I found no
precedence of using WM_NAME instead which is meant to be the window title.
So your patch may be incorrect. What application does have this problem.
Could this be a bug on that application's side instead?
Regards,
BALATON Zoltan