aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2020-06-05 11:20:51 +0000
committernicm <nicm>2020-06-05 11:20:51 +0000
commitd919fa1ed0ea3b167ffc811abba26a2dbcd20631 (patch)
tree58ff37d45126b5f3f99e2535820e58257f6a6528 /tmux.h
parent03b2998abe7712324a1a2ca254167dcc1ce28e4d (diff)
downloadrtmux-d919fa1ed0ea3b167ffc811abba26a2dbcd20631.tar.gz
rtmux-d919fa1ed0ea3b167ffc811abba26a2dbcd20631.tar.bz2
rtmux-d919fa1ed0ea3b167ffc811abba26a2dbcd20631.zip
Change how panes are resized so that the code is clearer and if the pane
is resized multiple times during one event loop, it is forced to resize at the end. Also don't zoom/unzoom in switch-client if the pane hasn't changed. GitHub issue 2260.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/tmux.h b/tmux.h
index 0681100f..df63321d 100644
--- a/tmux.h
+++ b/tmux.h
@@ -928,9 +928,6 @@ struct window_pane {
u_int sx;
u_int sy;
- u_int osx;
- u_int osy;
-
u_int xoff;
u_int yoff;
@@ -951,7 +948,7 @@ struct window_pane {
#define PANE_STATUSDRAWN 0x400
#define PANE_EMPTY 0x800
#define PANE_STYLECHANGED 0x1000
-#define PANE_RESIZED 0x2000
+#define PANE_RESIZENOW 0x2000
int argc;
char **argv;
@@ -969,6 +966,7 @@ struct window_pane {
size_t base_offset;
struct event resize_timer;
+ struct event force_timer;
struct input_ctx *ictx;