diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-04-12 12:01:32 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-04-12 12:01:32 +0100 |
commit | bedf2bd4372c60a525c22e6309f329cfd0bd07bc (patch) | |
tree | a0b3c4c57781899c1c3d74c12a11a10f69fb7682 /status.c | |
parent | 83cd593b9cce8bbdfd8014e13393ec1f1ec90f2e (diff) | |
parent | e6abe55134df1b9dc3b7dd7f3a65dff272a35bb7 (diff) | |
download | rtmux-bedf2bd4372c60a525c22e6309f329cfd0bd07bc.tar.gz rtmux-bedf2bd4372c60a525c22e6309f329cfd0bd07bc.tar.bz2 rtmux-bedf2bd4372c60a525c22e6309f329cfd0bd07bc.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -424,7 +424,7 @@ status_redraw(struct client *c) /* Set a status line message. */ void status_message_set(struct client *c, int delay, int ignore_styles, - const char *fmt, ...) + int ignore_keys, const char *fmt, ...) { struct timeval tv; va_list ap; @@ -433,7 +433,6 @@ status_message_set(struct client *c, int delay, int ignore_styles, status_push_screen(c); va_start(ap, fmt); - c->message_ignore_styles = ignore_styles; xvasprintf(&c->message_string, fmt, ap); va_end(ap); @@ -456,6 +455,10 @@ status_message_set(struct client *c, int delay, int ignore_styles, evtimer_add(&c->message_timer, &tv); } + if (delay != 0) + c->message_ignore_keys = ignore_keys; + c->message_ignore_styles = ignore_styles; + c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE); c->flags |= CLIENT_REDRAWSTATUS; } |