all repos — openbox @ 269fbc0fe08070c3c4be64629d121220714ce977

openbox fork - make it a bit more like ryudo

show parents title in alt-tab popup for titleless transients
Mikael Magnusson mikachu@comhem.se
commit

269fbc0fe08070c3c4be64629d121220714ce977

parent

cabcea2002f682f2f11bbbd936d55fc5e4fe6ba0

1 files changed, 4 insertions(+), 5 deletions(-)

jump to
M openbox/focus.copenbox/focus.c

@@ -356,14 +356,13 @@ /* use the transient's parent's title/icon */

while (p->transient_for && p->transient_for != OB_TRAN_GROUP) p = p->transient_for; -/* - if (p != c) - title = g_strconcat((c->iconic ? c->icon_title : c->title), + if (p != c && !strcmp("", (c->iconic ? c->icon_title : c->title))) + title = g_strdup(p->iconic ? p->icon_title : p->title); + /*title = g_strconcat((c->iconic ? c->icon_title : c->title), " - ", (p->iconic ? p->icon_title : p->title), NULL); -*/ - + */ icon_popup_show(focus_cycle_popup, (title ? title : (c->iconic ? c->icon_title : c->title)),