diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-12-07 09:52:59 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-12-07 09:52:59 +0000 |
commit | 138ffc7cb6225b8a6d54d771b0112635f0dbb42e (patch) | |
tree | 289b9f8c4ca207f92b6d81f9511c520969241120 /tty.c | |
parent | ef676e1202a4d5c423d5bba2f8ecba1f768d8364 (diff) | |
parent | d721fb2a9fd70c157abb8540d4c50fca654f9f4d (diff) | |
download | rtmux-138ffc7cb6225b8a6d54d771b0112635f0dbb42e.tar.gz rtmux-138ffc7cb6225b8a6d54d771b0112635f0dbb42e.tar.bz2 rtmux-138ffc7cb6225b8a6d54d771b0112635f0dbb42e.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -302,7 +302,7 @@ tty_start_tty(struct tty *tty) { struct client *c = tty->client; struct termios tio; - struct timeval tv = { .tv_sec = 1 }; + struct timeval tv = { .tv_sec = 3 }; setblocking(c->fd, 0); event_add(&tty->event_in, NULL); @@ -937,7 +937,9 @@ tty_update_window_offset(struct window *w) struct client *c; TAILQ_FOREACH(c, &clients, entry) { - if (c->session != NULL && c->session->curw->window == w) + if (c->session != NULL && + c->session->curw != NULL && + c->session->curw->window == w) tty_update_client_offset(c); } } |