window opened by superuser loses title except for " (as superuser)" string in tasklist (works fine in selector and window list)
I use mate-panel as my panel, and I noticed that when I opened windows as superuser, the title of the window would be truncated to just " (as superuser)" in the panel's "task list" applet. Through some digging, I found the sample apps in libwnck3 (~/rpmbuild/BUILD/libwnck-40.1/redhat-linux-build/libwnck) after compiling the src rpm (I'm on fedora ~35, with patched libwnck 40.1 -- to solve issue #142 ). Launching test-selector
, test-tasklist
, and test-wnck
I saw that all but tasklist show the correct title. Poking through the source code, the only difference I could see was that in tasklist.c
, the name is acquired via win_task->window
WnckTask *win_task;
...
w = class_group_task->windows;
...
win_task = WNCK_TASK (w->data);
...
name = wnck_window_get_icon_name (win_task->window);
while in the others, it is acquired from a WnckWindow *window
that is passed to the functions. (Or perhaps it is due to calling wnck_window_get_icon_name
vs wnck_window_get_name
-- ie window->priv->icon_name
vs window->priv->name
?)
Interestingly, on the tasklist and the panel, if I hover over the button for the window with the wrong title, I can get a tooltip that shows the right title.
I am able to test if a patch is provided.