Mercurial > minori
diff dep/animia/src/animia.cc @ 158:80d6b28eb29f
dep/animia: fix most X11 stuff
it looks like _NET_WM_PID isn't supported by MOST clients, or my code is wrong...
core/filesystem: fix Linux config path handling on *nix
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 17 Nov 2023 02:07:33 -0500 |
parents | cdf79282d647 |
children | 61b76c7b656a |
line wrap: on
line diff
--- a/dep/animia/src/animia.cc Thu Nov 16 16:51:34 2023 -0500 +++ b/dep/animia/src/animia.cc Fri Nov 17 02:07:33 2023 -0500 @@ -9,6 +9,8 @@ #include <string> #include <vector> +#include <iostream> + namespace animia { namespace internal { @@ -70,6 +72,11 @@ We should set the PID of the process if we can get it, but that'll be for when I can actually be arsed to implement the X11 backend. */ auto window_proc = [&](const Process& process, const Window& window) -> bool { + std::cout << "Window ID: " << window.id << "\n" + << "\tClass name: " << window.class_name << "\n" + << "\tTitle text: " << window.text << "\n" + << "\tProcess info: " << "\n" + << "\t\tPID: " << process.pid << "\n"; for (const auto& player : players) { if (!internal::PlayerHasStrategy(player, Strategy::WindowTitle)) continue;