Skip to content

Commit

Permalink
Display instance (if present) in nested layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Hummer12007 committed Jan 19, 2017
1 parent e714fbc commit d443bce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sway/border.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ static char *generate_container_title(swayc_t *container) {
swayc_t* child = container->children->items[i];
const char *title = NULL;
if (child->type == C_VIEW) {
title = child->app_id ? child->app_id : (child->class ? child->class : "(null)");
title = child->app_id ? child->app_id :
(child->instance ? child->instance :
(child->class ? child->class :"(null)"));
} else { //child->type == C_CONTAINER
title = generate_container_title(child);
}
Expand Down

0 comments on commit d443bce

Please sign in to comment.