aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-04-02 20:30:23 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-04-02 20:30:23 +0000
commit84cde92c8fa4f8b6e777c9c6608312d7dbc33ced (patch)
treedbaf49303a66ed67b85927b19d013307e23fd9b9 /tmux.h
parentb38f6608c706a8b20299d3b9631773a3b438a875 (diff)
downloadrtmux-84cde92c8fa4f8b6e777c9c6608312d7dbc33ced.tar.gz
rtmux-84cde92c8fa4f8b6e777c9c6608312d7dbc33ced.tar.bz2
rtmux-84cde92c8fa4f8b6e777c9c6608312d7dbc33ced.zip
If redrawing the region would mean redrawing > half the pane, just schedule to
redraw the entire window. Also add a flag to skip updating the window any further if it is scheduled to be redrawn. This has the effect of batching multiple redraws together.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tmux.h b/tmux.h
index 79c97e72..1277c5b1 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.295 2009-04-01 21:10:08 nicm Exp $ */
+/* $Id: tmux.h,v 1.296 2009-04-02 20:30:20 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -694,6 +694,7 @@ struct window {
#define WINDOW_BELL 0x1
#define WINDOW_HIDDEN 0x2
#define WINDOW_ACTIVITY 0x4
+#define WINDOW_REDRAW 0x8
struct options options;
@@ -1085,7 +1086,7 @@ void tty_set_title(struct tty *, const char *);
void tty_update_mode(struct tty *, int);
void tty_draw_line(
struct tty *, struct screen *, u_int, u_int, u_int);
-void tty_draw_region(struct tty *, struct screen *, u_int, u_int);
+void tty_redraw_region(struct tty *, struct window_pane *);
int tty_open(struct tty *, char **);
void tty_close(struct tty *, int);
void tty_free(struct tty *, int);