diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-14 21:48:12 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-14 21:48:12 +0200 |
| commit | 05d7afe2ecd69169045248e04bf039bdae2508f6 (patch) | |
| tree | b9b89be749a6a1d09f2a394b234c398275dd8132 /src | |
| parent | e4d05c90ce755a609cbec229a54d0069f21e7d53 (diff) | |
support linux_dmabuf_v1
Diffstat (limited to 'src')
| -rw-r--r-- | src/Compositor.cpp | 1 | ||||
| -rw-r--r-- | src/Compositor.hpp | 1 | ||||
| -rw-r--r-- | src/includes.hpp | 1 |
3 files changed, 3 insertions, 0 deletions
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 <wlr/types/wlr_data_control_v1.h> #include <wlr/types/wlr_data_device.h> #include <wlr/types/wlr_export_dmabuf_v1.h> +#include <wlr/types/wlr_linux_dmabuf_v1.h> #include <wlr/types/wlr_gamma_control_v1.h> #include <wlr/types/wlr_idle.h> #include <wlr/types/wlr_input_device.h> |
