From 86bf944afc65512290190993e2c07a2dfe97f25d Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 29 Sep 2007 19:53:39 +0000 Subject: [PATCH] Show the right windows in the list. --- server-msg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server-msg.c b/server-msg.c index d52e0812..08c5918a 100644 --- a/server-msg.c +++ b/server-msg.c @@ -1,4 +1,4 @@ -/* $Id: server-msg.c,v 1.10 2007-09-29 14:57:07 nicm Exp $ */ +/* $Id: server-msg.c,v 1.11 2007-09-29 19:53:39 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -361,14 +361,14 @@ server_msg_fn_windows(struct hdr *hdr, struct client *c) data.windows = 0; for (i = 0; i < ARRAY_LENGTH(&s->windows); i++) { - if (ARRAY_ITEM(&windows, i) != NULL) + if (ARRAY_ITEM(&s->windows, i) != NULL) data.windows++; } server_write_client2(c, MSG_WINDOWS, &data, sizeof data, NULL, data.windows * sizeof entry); - for (i = 0; i < ARRAY_LENGTH(&windows); i++) { - w = ARRAY_ITEM(&windows, i); + for (i = 0; i < ARRAY_LENGTH(&s->windows); i++) { + w = ARRAY_ITEM(&s->windows, i); if (w == NULL) continue; entry.idx = i;