From 484caf3b1cc6bd77275ea7c83de518d806c147f0 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 23 Jun 2024 19:38:56 +0200 Subject: [PATCH] add drm backend to requests --- src/Compositor.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 85bb5ff9..597950c8 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -226,10 +226,13 @@ void CCompositor::initServer() { options.logFunction = aqLog; std::vector implementations; - Aquamarine::SBackendImplementationOptions waylandOptions; - waylandOptions.backendType = Aquamarine::eBackendType::AQ_BACKEND_WAYLAND; - waylandOptions.backendRequestMode = Aquamarine::eBackendRequestMode::AQ_BACKEND_REQUEST_IF_AVAILABLE; - implementations.emplace_back(waylandOptions); + Aquamarine::SBackendImplementationOptions option; + option.backendType = Aquamarine::eBackendType::AQ_BACKEND_DRM; + option.backendRequestMode = Aquamarine::eBackendRequestMode::AQ_BACKEND_REQUEST_IF_AVAILABLE; + implementations.emplace_back(option); + option.backendType = Aquamarine::eBackendType::AQ_BACKEND_WAYLAND; + option.backendRequestMode = Aquamarine::eBackendRequestMode::AQ_BACKEND_REQUEST_FALLBACK; + implementations.emplace_back(option); m_pAqBackend = CBackend::create(implementations, options);