From: Derek Foreman Date: Fri, 4 Jun 2010 21:07:02 +0000 (-0400) Subject: update for changes in XCB (iterator no longer exists, must manually iterate on an... X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=47a4df4ce34c379b99653a14024dedacd37e1964;p=dana%2Fdcompmgr.git update for changes in XCB (iterator no longer exists, must manually iterate on an array) --- 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); }