X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Ffocus.c;h=eead6000dba9e41dcf2d9aeb56f6b080a7c2b2ca;hb=13df16a6815594821e94b9764d152ecc293bc71c;hp=fbac20ec35ff17c9562195e88428c5d49dc2468a;hpb=2b658f3d9bbb78ed3904edb44826b27380e80a1a;p=chaz%2Fopenbox diff --git a/openbox/focus.c b/openbox/focus.c index fbac20ec..eead6000 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -306,12 +306,14 @@ static void popup_cycle(ObClient *c, gboolean show) icon_popup_width(focus_cycle_popup, MAX(a->width/3, POPUP_WIDTH)); icon_popup_height(focus_cycle_popup, POPUP_HEIGHT); - /* use the transient's parent's title/icon */ - p = client_search_top_parent(c); + /* find our highest direct parent, including non-normal windows */ + for (p = c; p->transient_for && p->transient_for != OB_TRAN_GROUP; + p = p->transient_for); if (c->desktop != DESKTOP_ALL && c->desktop != screen_desktop) desk = screen_desktop_names[c->desktop]; + /* use the transient's parent's title/icon if we don't have one */ if (p != c && !strcmp("", (c->iconic ? c->icon_title : c->title))) title = g_strdup(p->iconic ? p->icon_title : p->title); /*ptitle = g_strconcat((c->iconic ? c->icon_title : c->title),