@@ -94,7 +94,7 @@ namespace CppUtils::Window
9494 std::uint32_t serial) -> void;
9595
9696 inline const auto surfaceListener = xdg_surface_listener{
97- .configure = &Window:: xdg_surface_configure,
97+ .configure = xdg_surface_configure,
9898 };
9999#endif
100100
@@ -228,7 +228,7 @@ namespace CppUtils::Window
228228 // m_imageStorage = ImageStorage{size};
229229 openWindow();
230230 wl_surface_commit(surface.get());
231- // wl_display_roundtrip(Wayland::globals.display.get());
231+ wl_display_roundtrip(Wayland::globals.display.get());
232232 // wl_display_dispatch(Wayland::globals.display.get());
233233 wl_display_flush(Wayland::globals.display.get());
234234 }
@@ -276,13 +276,13 @@ namespace CppUtils::Window
276276 {
277277 auto result = 0;
278278 while ((result = wl_display_dispatch(Wayland::globals.display.get())) != -1)
279- std::cout << " Event received, result = " << result << std::endl ;
280- std::cout << " Wayland dispatch exited with " << result << std::endl ;
279+ Logger::print<"detail">(" Event received, result = {}", result) ;
280+ Logger::print<"warning">(" Wayland dispatch exited with {}", result) ;
281281 }
282282
283283 inline auto update() -> void
284284 {
285- std::cout << " update" << std::endl ;
285+ Logger::print<"detail">(" update") ;
286286 wl_surface_attach(surface.get(), m_imageStorage.buffer.get(), 0, 0);
287287 wl_surface_damage(surface.get(), 0, 0, std::numeric_limits<std::int32_t>::max(), std::numeric_limits<std::int32_t>::max());
288288 wl_surface_commit(surface.get());
@@ -306,13 +306,13 @@ namespace CppUtils::Window
306306#endif
307307 };
308308
309- inline auto drawFrame(Window& window) -> void
309+ export inline auto drawFrame(Window& window) -> void
310310 {
311- std::cout << " drawFrame" << std::endl ;
311+ Logger::print<"detail">(" drawFrame") ;
312312 const auto& imageSize = window.getSize();
313313 if (not window.m_imageStorage.buffer)
314314 {
315- std::cout << " ImageStorage" << std::endl ;
315+ Logger::print<"detail">(" ImageStorage") ;
316316 window.m_imageStorage = Window::ImageStorage{imageSize};
317317 }
318318 auto* pixels = window.getPixels();
@@ -331,7 +331,7 @@ namespace CppUtils::Window
331331 xdg_surface* xdg_surface,
332332 std::uint32_t serial) -> void
333333 {
334- std::cout << " Surface configure !" << std::endl ;
334+ Logger::print<"detail">(" Surface configure !") ;
335335 auto& window = *static_cast<Window*>(data);
336336 xdg_surface_ack_configure(xdg_surface, serial);
337337
0 commit comments