Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-07-05 02:41:08 +03:00
parent 470c248bcf
commit 9d39cd9a38
8 changed files with 363 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ private:
wl_event_loop *event_loop = nullptr;
std::string socket;
std::unique_ptr<Shm> shm;
std::unique_ptr<wl::Shm> shm;
wl_global *subcompositor = nullptr;
} m_wayland;
@@ -110,9 +110,9 @@ LunarWM::LunarWM() {
}
{ // Wayland part 2: Electric boogaloo
m_wayland.shm = std::make_unique<Shm>(m_wayland.display);
m_wayland.shm = std::make_unique<wl::Shm>(m_wayland.display);
m_wayland.subcompositor = subcompositor_create(m_wayland.display);
m_wayland.subcompositor = wl::subcompositor_create(m_wayland.display);
if (!m_wayland.subcompositor)
throw std::runtime_error("Failed to create subcompositor");
}