aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-05-12 12:13:02 +0200
committervaxerski <[email protected]>2022-05-12 12:13:02 +0200
commitd438bd970a621db7e158936459922f8165ccee78 (patch)
tree258047d4b46a2bfac53e637d25453533c0ab4ec4 /src/Compositor.cpp
parentac7903f5217baa1a784341390c2848edbca33ccf (diff)
downloadHyprland-d438bd970a621db7e158936459922f8165ccee78.tar.gz
Hyprland-d438bd970a621db7e158936459922f8165ccee78.zip
Added virtual pointer protocol
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index df6257dd..ee1a0a1c 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -100,6 +100,8 @@ CCompositor::CCompositor() {
m_sWLRRelPointerMgr = wlr_relative_pointer_manager_v1_create(m_sWLDisplay);
m_sWLRVKeyboardMgr = wlr_virtual_keyboard_manager_v1_create(m_sWLDisplay);
+
+ m_sWLRVirtPtrMgr = wlr_virtual_pointer_manager_v1_create(m_sWLDisplay);
}
CCompositor::~CCompositor() {
@@ -132,6 +134,7 @@ void CCompositor::initAllSignals() {
addWLSignal(&m_sWLRInhibitMgr->events.deactivate, &Events::listen_InhibitDeactivate, m_sWLRInhibitMgr, "InhibitMgr");
addWLSignal(&m_sWLRPointerConstraints->events.new_constraint, &Events::listen_newConstraint, m_sWLRPointerConstraints, "PointerConstraints");
addWLSignal(&m_sWLRXDGDecoMgr->events.new_toplevel_decoration, &Events::listen_NewXDGDeco, m_sWLRXDGDecoMgr, "XDGDecoMgr");
+ addWLSignal(&m_sWLRVirtPtrMgr->events.new_virtual_pointer, &Events::listen_newVirtPtr, m_sWLRVirtPtrMgr, "VirtPtrMgr");
signal(SIGINT, handleCritSignal);
signal(SIGTERM, handleCritSignal);