Mercurial > minori
comparison dep/animia/src/animia.cc @ 190:2d5823df870f
dep/animia: finalize de-objc-ifying quartz
this also fixes up some... rather dumb mistakes in window.cc :)
HG Enter commit message. Lines beginning with 'HG:' are removed.
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 06 Dec 2023 21:26:13 -0500 |
parents | 54c5d80a737e |
children | 0fc126d52de4 |
comparison
equal
deleted
inserted
replaced
189:649786bae914 | 190:2d5823df870f |
---|---|
6 #include "animia/win.h" | 6 #include "animia/win.h" |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | |
12 #include <iostream> | |
11 | 13 |
12 namespace animia { | 14 namespace animia { |
13 | 15 |
14 namespace internal { | 16 namespace internal { |
15 | 17 |
68 Note: X11 is stupid and there's no reliable way to get a PID from a given window. | 70 Note: X11 is stupid and there's no reliable way to get a PID from a given window. |
69 This is because some windows might not even have a process attached to them. | 71 This is because some windows might not even have a process attached to them. |
70 We should set the PID of the process if we can get it, but that'll be for when | 72 We should set the PID of the process if we can get it, but that'll be for when |
71 I can actually be arsed to implement the X11 backend. */ | 73 I can actually be arsed to implement the X11 backend. */ |
72 auto window_proc = [&](const Process& process, const Window& window) -> bool { | 74 auto window_proc = [&](const Process& process, const Window& window) -> bool { |
75 std::cout << process.name << std::endl; | |
73 for (const auto& player : players) { | 76 for (const auto& player : players) { |
74 if (!internal::PlayerHasStrategy(player, Strategy::WindowTitle)) | 77 if (!internal::PlayerHasStrategy(player, Strategy::WindowTitle)) |
75 continue; | 78 continue; |
76 | 79 |
77 if (!internal::IsWindowInList(player, window.class_name)) | 80 if (!internal::IsWindowInList(player, window.class_name)) |