From d919fa1ed0ea3b167ffc811abba26a2dbcd20631 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 5 Jun 2020 11:20:51 +0000 Subject: 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. --- tmux.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tmux.h') 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; -- cgit