diff options
author | nicm <nicm> | 2015-08-28 17:11:12 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-08-28 17:11:12 +0000 |
commit | d9b313332186b0c99ec6a9b7585db8188bb35cfc (patch) | |
tree | 09cbbb6b188dda446ada149ac78105d92dbab6b2 /screen.c | |
parent | 5f122af55662a2af36f20493446dbbadfd24f7af (diff) | |
download | rtmux-d9b313332186b0c99ec6a9b7585db8188bb35cfc.tar.gz rtmux-d9b313332186b0c99ec6a9b7585db8188bb35cfc.tar.bz2 rtmux-d9b313332186b0c99ec6a9b7585db8188bb35cfc.zip |
Only set default title to hostname on screens that are being used for a
window pane, no point in calling gethostname() for temporary screens.
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -31,14 +31,8 @@ void screen_resize_y(struct screen *, u_int); void screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit) { - char host[HOST_NAME_MAX+1]; - s->grid = grid_create(sx, sy, hlimit); - - if (gethostname(host, sizeof(host)) == 0) - s->title = xstrdup(host); - else - s->title = xstrdup(""); + s->title = xstrdup(""); s->cstyle = 0; s->ccolour = xstrdup(""); |