aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2016-09-28 08:30:44 +0000
committernicm <nicm>2016-09-28 08:30:44 +0000
commitacacb718e5452bfdba4810007d5a10eace1a9fec (patch)
treeafd9330825aebdc0705562f8e781ef98b991c98b /tmux.h
parent69e980602b31732348aaceee045a1901dc982d78 (diff)
downloadrtmux-acacb718e5452bfdba4810007d5a10eace1a9fec.tar.gz
rtmux-acacb718e5452bfdba4810007d5a10eace1a9fec.tar.bz2
rtmux-acacb718e5452bfdba4810007d5a10eace1a9fec.zip
Rate limit TIOCSWINSZ on a timer to avoid programs getting hammered with
SIGWINCH when the size changes rapidly. To help a problem reported by Rui Pinheiro.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index 528b0b7b..46e35aab 100644
--- a/tmux.h
+++ b/tmux.h
@@ -894,6 +894,8 @@ struct window_pane {
int fd;
struct bufferevent *event;
+ struct event resize_timer;
+
u_int wmark_size;
u_int wmark_hits;