aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2016-06-15 09:13:46 +0000
committernicm <nicm>2016-06-15 09:13:46 +0000
commitbee3e3e28d04a237b1013b1dd3d36cddcd326891 (patch)
treee25badeaca2bcb9c246385a2bff99a14fb30f4e1 /tmux.h
parent068b8b03ad06abf1082e288ed7496970cccd7678 (diff)
downloadrtmux-bee3e3e28d04a237b1013b1dd3d36cddcd326891.tar.gz
rtmux-bee3e3e28d04a237b1013b1dd3d36cddcd326891.tar.bz2
rtmux-bee3e3e28d04a237b1013b1dd3d36cddcd326891.zip
Copy mode needs to keep the original grid intact so it can copy from it
if needed, so it disables reading from the pane. This can be problem with some programs. So make tmux automatically exit all modes after 180 seconds of inactivity and if there is pending output.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index b8d1a1f5..b84530f2 100644
--- a/tmux.h
+++ b/tmux.h
@@ -823,6 +823,7 @@ struct window_mode {
void (*key)(struct window_pane *, struct client *, struct session *,
key_code, struct mouse_event *);
};
+#define WINDOW_MODE_TIMEOUT 180
/* Structures for choose mode. */
struct window_choose_data {
@@ -905,6 +906,8 @@ struct window_pane {
const struct window_mode *mode;
void *modedata;
+ struct event modetimer;
+ time_t modelast;
TAILQ_ENTRY(window_pane) entry;
RB_ENTRY(window_pane) tree_entry;