projects
/
dana
/
dcompmgr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e581289
)
update for changes in XCB (iterator no longer exists, must manually iterate on an...
author
Derek Foreman
<foremande@gmail.com>
Fri, 4 Jun 2010 21:07:02 +0000
(17:07 -0400)
committer
Derek Foreman
<foremande@gmail.com>
Fri, 4 Jun 2010 21:07:02 +0000
(17:07 -0400)
screen.c
patch
|
blob
|
history
diff --git
a/screen.c
b/screen.c
index
325c7d4
..
f23f7b3
100644
(file)
--- 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) {
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);
}
free(rep);
}