From 05d7afe2ecd69169045248e04bf039bdae2508f6 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 14 Apr 2022 21:48:12 +0200 Subject: [PATCH] support linux_dmabuf_v1 --- src/Compositor.cpp | 1 + src/Compositor.hpp | 1 + src/includes.hpp | 1 + 3 files changed, 3 insertions(+) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 753e61c2..95e2ac48 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -54,6 +54,7 @@ CCompositor::CCompositor() { m_sWLRSubCompositor = wlr_subcompositor_create(m_sWLDisplay); m_sWLRDataDevMgr = wlr_data_device_manager_create(m_sWLDisplay); + m_sWLRDmabuf = wlr_linux_dmabuf_v1_create(m_sWLDisplay, m_sWLRRenderer); wlr_export_dmabuf_manager_v1_create(m_sWLDisplay); wlr_screencopy_manager_v1_create(m_sWLDisplay); wlr_data_control_manager_v1_create(m_sWLDisplay); diff --git a/src/Compositor.hpp b/src/Compositor.hpp index 9f1fdc87..2435b972 100644 --- a/src/Compositor.hpp +++ b/src/Compositor.hpp @@ -50,6 +50,7 @@ public: wlr_egl* m_sWLREGL; int m_iDRMFD; wlr_ext_workspace_manager_v1* m_sWLREXTWorkspaceMgr; + wlr_linux_dmabuf_v1* m_sWLRDmabuf; // ------------------------------------------------- // diff --git a/src/includes.hpp b/src/includes.hpp index 54893af7..db4bd60f 100644 --- a/src/includes.hpp +++ b/src/includes.hpp @@ -42,6 +42,7 @@ extern "C" { #include #include #include +#include #include #include #include