aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2020-04-18 06:10:15 +0000
committernicm <nicm>2020-04-18 06:10:15 +0000
commit5289d4ed13e18fa4430aba27af0d525d2f76fc30 (patch)
tree1d1592ea24444897acf47ccb6b017ec22bdd961c /tmux.h
parenta7a9460d2790161f7bb60c4047acf32d3aa93ed9 (diff)
downloadrtmux-5289d4ed13e18fa4430aba27af0d525d2f76fc30.tar.gz
rtmux-5289d4ed13e18fa4430aba27af0d525d2f76fc30.tar.bz2
rtmux-5289d4ed13e18fa4430aba27af0d525d2f76fc30.zip
When a redraw is deferred because the terminal hasn't finished reading
the data from the last one, other panes could update while waiting, so we set the flag to redraw them all when the new redraw actually happened. But this means a lot of redrawing panes unnecessarily if they haven't changed - so instead set a flag to say "at least one pane needs to be redrawed" then look at the invidual pane flags to see which ones need it.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index b791f5af..d475065e 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1244,6 +1244,7 @@ struct tty {
#define TTY_BLOCK 0x80
#define TTY_HAVEDA 0x100
#define TTY_HAVEDSR 0x200
+#define TTY_SYNCING 0x400
int flags;
struct tty_term *term;
@@ -1538,12 +1539,14 @@ struct client {
#define CLIENT_CONTROL_NOOUTPUT 0x4000000
#define CLIENT_DEFAULTSOCKET 0x8000000
#define CLIENT_STARTSERVER 0x10000000
+#define CLIENT_REDRAWPANES 0x20000000
#define CLIENT_ALLREDRAWFLAGS \
(CLIENT_REDRAWWINDOW| \
CLIENT_REDRAWSTATUS| \
CLIENT_REDRAWSTATUSALWAYS| \
CLIENT_REDRAWBORDERS| \
- CLIENT_REDRAWOVERLAY)
+ CLIENT_REDRAWOVERLAY| \
+ CLIENT_REDRAWPANES)
#define CLIENT_UNATTACHEDFLAGS \
(CLIENT_DEAD| \
CLIENT_SUSPENDED| \