diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-12-05 20:04:06 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-12-05 20:04:06 +0000 |
commit | d0342f4a0474abf42098fbaa0a4e2f2e3f006514 (patch) | |
tree | 1c57a4a32b44eaeb6036ae8153e3d5fd8b2c7f85 /server.c | |
parent | 408c85507048a2ca97d1ff13493545d5cf636a40 (diff) | |
download | rtmux-d0342f4a0474abf42098fbaa0a4e2f2e3f006514.tar.gz rtmux-d0342f4a0474abf42098fbaa0a4e2f2e3f006514.tar.bz2 rtmux-d0342f4a0474abf42098fbaa0a4e2f2e3f006514.zip |
Ability to show window title on status line.
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.84 2008-11-04 20:55:58 nicm Exp $ */ +/* $Id: server.c,v 1.85 2008-12-05 20:04:06 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -305,7 +305,7 @@ server_check_redraw(struct client *c) struct screen screen; struct grid_cell gc; u_int xx, yy, sx, sy; - char title[BUFSIZ]; + char *title; int flags; if (c == NULL || c->session == NULL) @@ -316,9 +316,7 @@ server_check_redraw(struct client *c) c->tty.flags &= ~TTY_FREEZE; if (options_get_number(&s->options, "set-titles")) { - xsnprintf(title, sizeof title, - "%s:%u:%s - \"%s\"", s->name, s->curw->idx, - s->curw->window->name, s->curw->window->base.title); + title = s->curw->window->base.title; if (c->title == NULL || strcmp(title, c->title) != 0) { if (c->title != NULL) xfree(c->title); |