diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-06-08 14:29:49 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-06-08 14:29:49 +0200 |
| commit | da80eb8e57f4950dab5a573deee157e8b3912487 (patch) | |
| tree | 23980557a164eab1a349428865cf2d481c5fe814 /src | |
| parent | 0b8fe2a0aa02e2b0eb347b7793ac8a8f850cd62e (diff) | |
Added the tablet manager and tablet v2 protocol
Diffstat (limited to 'src')
| -rw-r--r-- | src/Compositor.cpp | 2 | ||||
| -rw-r--r-- | src/Compositor.hpp | 1 | ||||
| -rw-r--r-- | src/includes.hpp | 3 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 0f6dd8d3..a787855a 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -109,6 +109,8 @@ CCompositor::CCompositor() { m_sWLRVirtPtrMgr = wlr_virtual_pointer_manager_v1_create(m_sWLDisplay); m_sWLRToplevelMgr = wlr_foreign_toplevel_manager_v1_create(m_sWLDisplay); + + m_sWLRTabletManager = wlr_tablet_v2_create(m_sWLDisplay); } CCompositor::~CCompositor() { diff --git a/src/Compositor.hpp b/src/Compositor.hpp index 92cb1f55..2cf867db 100644 --- a/src/Compositor.hpp +++ b/src/Compositor.hpp @@ -59,6 +59,7 @@ public: wlr_xdg_decoration_manager_v1* m_sWLRXDGDecoMgr; wlr_virtual_pointer_manager_v1* m_sWLRVirtPtrMgr; wlr_foreign_toplevel_manager_v1* m_sWLRToplevelMgr; + wlr_tablet_manager_v2* m_sWLRTabletManager; // ------------------------------------------------- // diff --git a/src/includes.hpp b/src/includes.hpp index 5c216b7e..8b00b394 100644 --- a/src/includes.hpp +++ b/src/includes.hpp @@ -77,6 +77,9 @@ extern "C" { #include "../wlroots/include/wlr/util/log.h" #include "../wlroots/include/wlr/xwayland.h" #include "../wlroots/include/wlr/util/region.h" +#include "../wlroots/include/wlr/types/wlr_tablet_pad.h" +#include "../wlroots/include/wlr/types/wlr_tablet_tool.h" +#include "../wlroots/include/wlr/types/wlr_tablet_v2.h" #include <xkbcommon/xkbcommon.h> #include <X11/Xproto.h> #include "../wlroots/include/wlr/render/egl.h" |
