show parents title in alt-tab popup for titleless transients

This commit is contained in:
Mikael Magnusson 2004-03-31 09:56:01 +00:00
parent cabcea2002
commit 269fbc0fe0

View file

@ -356,14 +356,13 @@ static void popup_cycle(ObClient *c, gboolean show)
while (p->transient_for && p->transient_for != OB_TRAN_GROUP) while (p->transient_for && p->transient_for != OB_TRAN_GROUP)
p = p->transient_for; p = p->transient_for;
/* if (p != c && !strcmp("", (c->iconic ? c->icon_title : c->title)))
if (p != c) title = g_strdup(p->iconic ? p->icon_title : p->title);
title = g_strconcat((c->iconic ? c->icon_title : c->title), /*title = g_strconcat((c->iconic ? c->icon_title : c->title),
" - ", " - ",
(p->iconic ? p->icon_title : p->title), (p->iconic ? p->icon_title : p->title),
NULL); NULL);
*/ */
icon_popup_show(focus_cycle_popup, icon_popup_show(focus_cycle_popup,
(title ? title : (title ? title :
(c->iconic ? c->icon_title : c->title)), (c->iconic ? c->icon_title : c->title)),