Mercurial > minori
diff dep/animia/src/win/x11.cc @ 167:31735c8592bc
dep/animia: make x11 window walking actually work
this is HORRIBLY slow, and I'm not *entirely* sure why...
author | paper@DavesDouble.local |
---|---|
date | Sun, 19 Nov 2023 05:32:06 -0500 |
parents | 54c5d80a737e |
children | 0fc126d52de4 |
line wrap: on
line diff
--- a/dep/animia/src/win/x11.cc Sun Nov 19 04:21:56 2023 -0500 +++ b/dep/animia/src/win/x11.cc Sun Nov 19 05:32:06 2023 -0500 @@ -104,7 +104,7 @@ ::Window parent_return; int status = ::XQueryTree(display, window, &root_return, &parent_return, &children_arr, &num_children); - if (status < Success) + if (!status || !children_arr) continue; if (num_children < 1) { @@ -120,7 +120,7 @@ std::set<::Window> children_children; - if (!WalkWindows(display, children_children, children)) + if (WalkWindows(display, children_children, children)) children.insert(children_children.begin(), children_children.end()); }