aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMykyta Holubakha <hilobakho@gmail.com>2017-01-19 03:45:23 +0200
committerMykyta Holubakha <hilobakho@gmail.com>2017-01-19 03:45:23 +0200
commitd443bce6fe78fc21560afe2d194f8bbd7593820d (patch)
tree99225cbb7e76e869ba96ce87bbf28ca47f299fa2
parente714fbcbec43fa87e1b969e5fcdc0abf298ade44 (diff)
downloadsway-d443bce6fe78fc21560afe2d194f8bbd7593820d.zip
sway-d443bce6fe78fc21560afe2d194f8bbd7593820d.tar.gz
sway-d443bce6fe78fc21560afe2d194f8bbd7593820d.tar.bz2
Display instance (if present) in nested layouts
-rw-r--r--sway/border.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/border.c b/sway/border.c
index 5ae32d2..d79029a 100644
--- a/sway/border.c
+++ b/sway/border.c
@@ -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);
}