Mercurial > minori
diff dep/animia/src/win.cc @ 199:9f3534f6b8c4
dep/animia: initial Wayland support, drop non-working kvm fd plugin
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 02 Jan 2024 02:34:27 -0500 |
parents | bc1ae1810855 |
children |
line wrap: on
line diff
--- a/dep/animia/src/win.cc Sun Dec 24 02:59:42 2023 -0500 +++ b/dep/animia/src/win.cc Tue Jan 02 02:34:27 2024 -0500 @@ -12,21 +12,29 @@ # include "animia/win/x11.h" #endif +#ifdef WAYLAND +# include "animia/win/wayland.h" +#endif + namespace animia::internal { bool EnumerateWindows(window_proc_t window_proc) { bool success = false; #ifdef WIN32 - success ^= win32::EnumerateWindows(window_proc); + success |= win32::EnumerateWindows(window_proc); #endif #ifdef MACOSX - success ^= quartz::EnumerateWindows(window_proc); + success |= quartz::EnumerateWindows(window_proc); #endif #ifdef X11 - success ^= x11::EnumerateWindows(window_proc); + success |= x11::EnumerateWindows(window_proc); +#endif + +#ifdef WAYLAND + success |= wayland::EnumerateWindows(window_proc); #endif return success;