GNOME Bugzilla – Bug 17994
Tasklist should show icon name, not window name.
Last modified: 2005-03-27 23:50:10 UTC
Package: panel Severity: wishlist Version: Synopsis: Tasklist should show icon name, not window name. Class: change-request System: SunOS 5.8 sun4u sparc C compiler: 2.95.2 glib: 1.2.7 GTK+: 1.2.7 ORBit: ORBit 0.5.1 gnome-libs: gnome-libs 1.2.0 libxml: 1.8.7 gnome-print: gnome-print-0.20 gnome-core: gnome-core 1.2.0 Description: The tasklist always shows the window title, not the icon title. For example, Ilike to set my xterm title to my current hostname and path, but set the icon title to only the hostname since the path is usually too long to fit in an icon. But the tasklist uses only the window title. To check this, you can use the -T and -n options to xterm, or, within an xterm, echo out: ^[]1;ICON ^G^[]2;TITLE ^G where ^[ is an escape and ^G is control-G ------- Bug moved to this database by debbugs-export@bugzilla.gnome.org 2001-01-27 13:13 ------- This bug was previously known as bug 17994 at http://bugs.gnome.org/ http://bugs.gnome.org/show_bug.cgi?id=17994 Originally filed under the gnome-core product and panel component. The original reporter (wfaulk@windwire.com) of this bug does not have an account here. Reassigning to the exporter, debbugs-export@bugzilla.gnome.org. Reassigning to the default owner of the component, panel-maint@bugzilla.gnome.org.
Perhaps this should be an option
*** Bug 84160 has been marked as a duplicate of this bug. ***
im assuming this is libwnk,
I agree it should do this (but not as an option, it should just show icon name if set, falling back to window name). Or really it should choose a name in this order, selecting the first property that is validly set: _NET_WM_VISIBLE_ICON_NAME _NET_WM_ICON_NAME WM_ICON_NAME _NET_WM_VISIBLE_NAME _NET_WM_NAME WM_NAME
Reopening this because the incorrect behaviour explained in a comment to bug 84164 is caused by the way libwnck is handling setting the title of a window, when the icon title has been set. Follows a patch which fixes this.
Created attachment 18422 [details] [review] fix this
Looks good to commit, thanks.
Done.
This doesn't seem to be fixed. I observe the problem with both libwnck version 2.8.1 from Fedora Core 3 and version 2.10.0 from rawhide.
Peter: With which program? Can you run "xprop | grep _NAME", then click on the window causing problems, and then give us the output?
I'm using xterms, but I notice that the same happens with gnome-terminal. Here's the xprop output for xterm after typing 'echo -n "^[]1;icon^G^[]2;title^G"': > xprop | grep _NAME WM_LOCALE_NAME(STRING) = "en_GB.iso88591" WM_ICON_NAME(STRING) = "icon" WM_NAME(STRING) = "title" and for gnome-terminal: > xprop | grep _NAME WM_LOCALE_NAME(STRING) = "en_GB.iso88591" WM_ICON_NAME(STRING) = "icon" _NET_WM_ICON_NAME(UTF8_STRING) = 0x69, 0x63, 0x6f, 0x6e WM_NAME(STRING) = "title" _NET_WM_NAME(UTF8_STRING) = 0x74, 0x69, 0x74, 0x6c, 0x65
Created attachment 39321 [details] [review] s/wnck_window_get_name/wnck_window_get_icon_name/ Here's a trivial patch againt HEAD that seems to do the trick. Related musing: the tooltips in the Window List seem a bit redundant. Perhaps they should show the title text rather than the icon text, or if they're different, even both?