/* Crafter®.Graphics Copyright (C) 2025 Catcrafts® catcrafts.net This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3.0 as published by the Free Software Foundation; This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ module; #ifdef CRAFTER_GRAPHICS_WAYLAND #include #include #include #include #include #include "../lib/xdg-shell-client-protocol.h" #include "../lib/wayland-xdg-decoration-unstable-v1-client-protocol.h" #include #include #include #include #include #include #include #include #include #include #endif export module Crafter.Graphics:Window_impl; import :Window; import std; import :WindowKeyboard; import :WindowFramebuffer; import :Types; import :Shm; import Crafter.Event; using namespace Crafter; void WindowBase::StartSync() { while (open && wl_display_dispatch(display) != -1) { std::cout << "bruh3" << std::endl; } } void WindowBase::StartUpdate(void* window) { cb = wl_surface_frame(surface); wl_callback_add_listener(cb, &surface_frame_listener, window); } void WindowBase::StopUpdate() { onUpdate.listeners.clear(); }