sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit d443bce6fe78fc21560afe2d194f8bbd7593820d
parent e714fbcbec43fa87e1b969e5fcdc0abf298ade44
Author: Mykyta Holubakha <hilobakho@gmail.com>
Date:   Thu, 19 Jan 2017 03:45:23 +0200

Display instance (if present) in nested layouts

Diffstat:
Msway/border.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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); }