]> Dogcows Code - chaz/openbox/commitdiff
show parents title in alt-tab popup for titleless transients
authorMikael Magnusson <mikachu@comhem.se>
Wed, 31 Mar 2004 09:56:01 +0000 (09:56 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Wed, 31 Mar 2004 09:56:01 +0000 (09:56 +0000)
openbox/focus.c

index 63d2c97194b2f36fdc0f048f51c34ae538bf67e2..09d642c2b4bc57bd1e305acef0df59081f90b26c 100644 (file)
@@ -356,14 +356,13 @@ static void popup_cycle(ObClient *c, gboolean show)
         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)),
This page took 0.02756 seconds and 4 git commands to generate.