diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-04-02 20:30:23 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-04-02 20:30:23 +0000 |
commit | 84cde92c8fa4f8b6e777c9c6608312d7dbc33ced (patch) | |
tree | dbaf49303a66ed67b85927b19d013307e23fd9b9 /server-fn.c | |
parent | b38f6608c706a8b20299d3b9631773a3b438a875 (diff) | |
download | rtmux-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-fn.c')
-rw-r--r-- | server-fn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server-fn.c b/server-fn.c index b9b7460f..5f8b0a45 100644 --- a/server-fn.c +++ b/server-fn.c @@ -1,4 +1,4 @@ -/* $Id: server-fn.c,v 1.57 2009-03-07 09:42:13 nicm Exp $ */ +/* $Id: server-fn.c,v 1.58 2009-04-02 20:30:20 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -146,6 +146,7 @@ server_redraw_window(struct window *w) if (c->session->curw->window == w) server_redraw_client(c); } + w->flags |= WINDOW_REDRAW; } void |