Move lazy resize from the pane to the window, there is no point in resizing the

window unless it is the current window, and if we do and don't resize the pane
until later there are problems if the size changes from A to B then back to A.
This commit is contained in:
Nicholas Marriott
2020-05-16 14:57:36 +01:00
parent 53c84fd4aa
commit 57fe03dc5a
4 changed files with 62 additions and 36 deletions

6
tmux.h
View File

@ -1012,12 +1012,18 @@ struct window {
u_int xpixel;
u_int ypixel;
u_int new_sx;
u_int new_sy;
u_int new_xpixel;
u_int new_ypixel;
int flags;
#define WINDOW_BELL 0x1
#define WINDOW_ACTIVITY 0x2
#define WINDOW_SILENCE 0x4
#define WINDOW_ZOOMED 0x8
#define WINDOW_WASZOOMED 0x10
#define WINDOW_RESIZE 0x20
#define WINDOW_ALERTFLAGS (WINDOW_BELL|WINDOW_ACTIVITY|WINDOW_SILENCE)
int alerts_queued;