From 47a4df4ce34c379b99653a14024dedacd37e1964 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Fri, 4 Jun 2010 17:07:02 -0400 Subject: [PATCH] update for changes in XCB (iterator no longer exists, must manually iterate on an array) --- screen.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/screen.c b/screen.c index 325c7d4..f23f7b3 100644 --- a/screen.c +++ b/screen.c @@ -281,11 +281,13 @@ screen_add_existing_windows(d_screen_t *sc) ck = xcb_query_tree(sc->dpy->conn, sc->super->root); rep = xcb_query_tree_reply(sc->dpy->conn, ck, NULL); if (rep) { - xcb_window_iterator_t it; + xcb_window_t *it; + int count, i; - it = xcb_query_tree_children_iterator(rep); - for (; it.rem; xcb_window_next(&it)) - screen_add_window(sc, *it.data); + it = xcb_query_tree_children(rep); + count = xcb_query_tree_children_length(rep); + for (i = 0; i < count; i++) + screen_add_window(sc, it[i]); free(rep); } -- 2.34.1