diff --git a/src/backend/Wayland.cpp b/src/backend/Wayland.cpp index ab99f8c..c4e38b6 100644 --- a/src/backend/Wayland.cpp +++ b/src/backend/Wayland.cpp @@ -137,6 +137,8 @@ int Aquamarine::CWaylandBackend::drmFD() { bool Aquamarine::CWaylandBackend::createOutput(const std::string& szName) { auto o = outputs.emplace_back(SP(new CWaylandOutput(szName.empty() ? std::format("WAYLAND-{}", ++lastOutputID) : szName, self))); o->self = o; + if (backend->ready) + o->swapchain = CSwapchain::create(backend->allocator, self.lock()); idleCallbacks.emplace_back([this, o]() { backend->events.newOutput.emit(SP(o)); }); return true; }