From 8d66f4fba4972d45be64d108c7c8d952f85016a8 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 22 Apr 2015 15:30:11 +0000 Subject: Change the windows array into an RB tree and fix some places where we were only looking at the first winlink for a window in a session. --- server-client.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'server-client.c') diff --git a/server-client.c b/server-client.c index c022a36f..e2f65e71 100644 --- a/server-client.c +++ b/server-client.c @@ -720,11 +720,7 @@ server_client_loop(void) * Any windows will have been redrawn as part of clients, so clear * their flags now. Also check pane focus and resize. */ - for (i = 0; i < ARRAY_LENGTH(&windows); i++) { - w = ARRAY_ITEM(&windows, i); - if (w == NULL) - continue; - + RB_FOREACH(w, windows, &windows) { w->flags &= ~WINDOW_REDRAW; TAILQ_FOREACH(wp, &w->panes, entry) { if (wp->fd != -1) { -- cgit v1.2.3