Mercurial > minori
comparison 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 |
comparison
equal
deleted
inserted
replaced
198:bc1ae1810855 | 199:9f3534f6b8c4 |
---|---|
10 | 10 |
11 #ifdef X11 | 11 #ifdef X11 |
12 # include "animia/win/x11.h" | 12 # include "animia/win/x11.h" |
13 #endif | 13 #endif |
14 | 14 |
15 #ifdef WAYLAND | |
16 # include "animia/win/wayland.h" | |
17 #endif | |
18 | |
15 namespace animia::internal { | 19 namespace animia::internal { |
16 | 20 |
17 bool EnumerateWindows(window_proc_t window_proc) { | 21 bool EnumerateWindows(window_proc_t window_proc) { |
18 bool success = false; | 22 bool success = false; |
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 |
24 #ifdef MACOSX | 28 #ifdef MACOSX |
25 success ^= quartz::EnumerateWindows(window_proc); | 29 success |= quartz::EnumerateWindows(window_proc); |
26 #endif | 30 #endif |
27 | 31 |
28 #ifdef X11 | 32 #ifdef X11 |
29 success ^= x11::EnumerateWindows(window_proc); | 33 success |= x11::EnumerateWindows(window_proc); |
34 #endif | |
35 | |
36 #ifdef WAYLAND | |
37 success |= wayland::EnumerateWindows(window_proc); | |
30 #endif | 38 #endif |
31 | 39 |
32 return success; | 40 return success; |
33 } | 41 } |
34 | 42 |