# HG changeset patch # User paper@DavesDouble.local # Date 1700389926 18000 # Node ID 31735c8592bcf1a7e54dda7bebce95a39b5294fe # Parent 54c5d80a737e1cfce4808515ca82b88b7f259b17 dep/animia: make x11 window walking actually work this is HORRIBLY slow, and I'm not *entirely* sure why... diff -r 54c5d80a737e -r 31735c8592bc dep/animia/src/win/x11.cc --- 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()); }