Mercurial > minori
comparison dep/animone/src/win.cc @ 266:1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
apparently I broke these, and even now the x11 code *still* doesn't want
to work correctly (at least on FreeBSD). half of the PID response codes
are just 0 or the PID for the X server itself... wtf?
maybe dwm just doesn't support the XRes extension, or I'm just stupid.
i don't know.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Thu, 11 Apr 2024 22:05:41 -0400 |
parents | 862d0d8619f6 |
children | 65df2813d0de |
comparison
equal
deleted
inserted
replaced
265:ff0b2052b234 | 266:1a6a5d3a94cd |
---|---|
10 | 10 |
11 #ifdef X11 | 11 #ifdef X11 |
12 # include "animone/win/x11.h" | 12 # include "animone/win/x11.h" |
13 #endif | 13 #endif |
14 | 14 |
15 #include <iostream> | |
16 | |
15 namespace animone::internal { | 17 namespace animone::internal { |
16 | 18 |
17 bool EnumerateWindows(window_proc_t window_proc) { | 19 bool EnumerateWindows(window_proc_t window_proc) { |
18 bool success = false; | 20 bool success = false; |
21 | |
22 std::cout << "enumerating windows" << std::endl; | |
19 | 23 |
20 #ifdef WIN32 | 24 #ifdef WIN32 |
21 success |= win32::EnumerateWindows(window_proc); | 25 success |= win32::EnumerateWindows(window_proc); |
22 #endif | 26 #endif |
23 | 27 |