diff options
@@ -1824,7 +1824,13 @@ focusclient(Client *c, int lift) * handling a drag operation */ if (!exclusive_focus && !seat->drag) { - client_set_border_color(c, (float[])COLOR(colors[SchemeSel][ColBorder])); + const char *title = client_get_title(c); + if (title && strstr(title,"[tmux]")) { + client_set_border_color(c, tmux_color); + } + else { + client_set_border_color(c, (float[])COLOR(colors[SchemeSel][ColBorder])); + } client_set_dimmer_state(c, 0); } } @@ -3591,8 +3597,16 @@ void updatetitle(struct wl_listener *listener, void *data) { Client *c = wl_container_of(listener, c, set_title); - if (c == focustop(c->mon)) + if (c == focustop(c->mon)) { drawbars(); + const char *title = client_get_title(c); + if (title && strstr(title,"[tmux]")) { + client_set_border_color(c, tmux_color); + } + else { + client_set_border_color(c, (float[])COLOR(colors[SchemeSel][ColBorder])); + } + } } void |