comparison dep/animia/src/win/x11.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 0fc126d52de4
children 9f3534f6b8c4
comparison
equal deleted inserted replaced
197:c4ca035c565d 198:bc1ae1810855
128 } 128 }
129 129
130 return true; 130 return true;
131 } 131 }
132 132
133 bool X11WinTools::EnumerateWindows(window_proc_t window_proc) { 133 bool EnumerateWindows(window_proc_t window_proc) {
134 if (!window_proc) 134 if (!window_proc)
135 return false; 135 return false;
136 136
137 ::Display* display = ::XOpenDisplay(nullptr); 137 ::Display* display = ::XOpenDisplay(nullptr);
138 if (!display) 138 if (!display)