Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wish 8.6 in Ubuntu 18 LTS displays the window class in the taskbar instead of the window title

37 views
Skip to first unread message

tombert

unread,
Apr 10, 2019, 7:59:41 PM4/10/19
to
Ho to reproduce:

start a wish, then
> toplevel .t1 -class "something"
> wm title .t1 "My Title"


Now hover the mouse over the icon in the taskbar, it will show "something" instead of "My Title".

One can check the window properties using xprop linux command:

_NET_WM_NAME(UTF8_STRING) = "My Title"
WM_NAME(STRING) = "My Title"
WM_CLASS(STRING) = "t1", "something"

Any ideas what can be done about this?

thx!

Rich

unread,
Apr 10, 2019, 9:12:24 PM4/10/19
to
Short of having Ubuntu fix their bug (it looks as if Tcl has done
everything correctly, so this is not Tcl's fault, but a Ubuntu bug) you
could also insert the title you want to see as the class (or possibly
just don't set a class).

tombert

unread,
Apr 14, 2019, 6:14:09 PM4/14/19
to
On Thursday, 11 April 2019 03:12:24 UTC+2, Rich wrote:
If Tcl has done everything correctly, so what have the other apps done wrong to display the correct title?
For the time being evidence is not on Tcl side, since all apps that come with Ubuntu (Terminal, Emacs, Libre, ...) have no issues with the title.

Rich

unread,
Apr 14, 2019, 8:42:55 PM4/14/19
to
tombert <tomber...@live.at> wrote:
> On Thursday, 11 April 2019 03:12:24 UTC+2, Rich wrote:
>> tombert <tombert at gr...@live.at> wrote:
>> > Ho to reproduce:
>> >
>> > start a wish, then
>> >> toplevel .t1 -class "something"
>> >> wm title .t1 "My Title"
>> >
>> >
>> > Now hover the mouse over the icon in the taskbar, it will show
>> > "something" instead of "My Title".
>> >
>> > One can check the window properties using xprop linux command:
>> >
>> > _NET_WM_NAME(UTF8_STRING) = "My Title"
>> > WM_NAME(STRING) = "My Title"
>> > WM_CLASS(STRING) = "t1", "something"
>> >
>> > Any ideas what can be done about this?
>>
>> Short of having Ubuntu fix their bug (it looks as if Tcl has done
>> everything correctly, so this is not Tcl's fault, but a Ubuntu bug) you
>> could also insert the title you want to see as the class (or possibly
>> just don't set a class).
>
> If Tcl has done everything correctly, so what have the other apps
> done wrong to display the correct title?

Check the xprop of one of the others. Do they even set a WM_CLASS
value?

> For the time being evidence is not on Tcl side, since all apps that
> come with Ubuntu (Terminal, Emacs, Libre, ...) have no issues with
> the title.

No, the evidence points to Ubuntu's task bar's hover handler doing the
wrong thing. Assuming xprop is correct (and it is unlikely to be a
piece of code that Ubuntu's changed in any way), your xprop shows Tk
having done things correctly. WM_NAME has the title, WM_CLASS has t1
and something (toplevel name and class name). That all looks
reasonable, as in it does not look like there should be any issues,
which translates to Tk not doing anything wrong.

The hover you see in the Ubuntu taskbar is brought to you by Ubuntu's
code that generates the taskbar. Tk has zero involvement with the task
bar, so an improper value showing on taskbar hover indicates a Ubuntu
bug. And since Ubuntu generally installs cutting edge alpha and beta
level code, I'd not at all be surprised that there is a bug lurking
there.

Robert Heller

unread,
Apr 14, 2019, 10:58:19 PM4/14/19
to
I did a test (Tcl/Tk 8.5, CentOS 6, FVWM2). Same code as the OP. The window
title has the right thing. The icon in Fvwm's IconBox has "somthing: My
Title". I am presuming that the "taskbar" is something like the IconBox I am
using (I don't use the GNome[2] "taskbar" under CentOS 6 and use the Fvwm
IconBox intead -- same basic function, different level of eye candy). *I'm*
guessing GTK3 toplevels are just not setting the "WM_CLASS" to anything
(nothing requires them to and since "nobody" is using the X11 Option DB
anymore -- GTK apps are using the GTK gconf/dconf dbus thingy instead for
window configuration). This would be some sort of [long standing]
"bug/feature" of GTK2 and GTK3. It is probably not even a Ubuntu bug, but a
GNome "bug/feature". (I would not expect the GNome people to fix it.)

Actually, now that I look at my IconBox, all of the "icons" have "program
name: window title" (eg "Firefox: mumble,mumble", where 'mumble,mumble' is
whatever was in the page's <title></title> tag). This has always been the
case. This is probably not really a bug, just a lack of understanding of what
is going on on the part of the OP.

>

--
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
hel...@deepsoft.com -- Webhosting Services

0 new messages