comparison dep/animia/src/win/quartz.cc @ 198:bc1ae1810855

dep/animia: switch from using classes to global functions the old idea was ok, but sort of hackish; this method doesn't use classes at all, and this way (especially important!) we can do wayland stuff AND x11 at the same time, which wasn't really possible without stupid workarounds in the other method
author Paper <mrpapersonic@gmail.com>
date Sun, 24 Dec 2023 02:59:42 -0500
parents c4ca035c565d
children a7d0d543b334
comparison
equal deleted inserted replaced
197:c4ca035c565d 198:bc1ae1810855
75 return false; 75 return false;
76 76
77 return true; 77 return true;
78 } 78 }
79 79
80 bool QuartzWinTools::EnumerateWindows(window_proc_t window_proc) { 80 bool EnumerateWindows(window_proc_t window_proc) {
81 if (!window_proc) 81 if (!window_proc)
82 return false; 82 return false;
83 83
84 const CFArrayRef windows = CGWindowListCopyWindowInfo(kCGWindowListOptionAll, kCGNullWindowID); 84 const CFArrayRef windows = CGWindowListCopyWindowInfo(kCGWindowListOptionAll, kCGNullWindowID);
85 if (!windows) 85 if (!windows)