aboutsummaryrefslogtreecommitdiff
path: root/server.c
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 /server.c
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 'server.c')
-rw-r--r--server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server.c b/server.c
index e217ee5b..0ce5395d 100644
--- a/server.c
+++ b/server.c
@@ -1,4 +1,4 @@
-/* $Id: server.c,v 1.134 2009-04-01 21:10:08 nicm Exp $ */
+/* $Id: server.c,v 1.135 2009-04-02 20:30:20 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -921,6 +921,8 @@ server_check_window(struct window *w)
wp = wq;
}
+ w->flags &= ~WINDOW_REDRAW; /* redrawn as part of client */
+
if (!destroyed)
return;