From 7b1eaca84014d88a420bcbd3f97467f74e82ab33 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 17 Apr 2022 21:40:04 +0200 Subject: Implemented mouse constraints has some todos but mostly works --- src/Compositor.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 95e2ac48..a6bd140b 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -93,6 +93,10 @@ CCompositor::CCompositor() { m_sWLRKbShInhibitMgr = wlr_keyboard_shortcuts_inhibit_v1_create(m_sWLDisplay); m_sWLREXTWorkspaceMgr = wlr_ext_workspace_manager_v1_create(m_sWLDisplay); + + m_sWLRPointerConstraints = wlr_pointer_constraints_v1_create(m_sWLDisplay); + + m_sWLRRelPointerMgr = wlr_relative_pointer_manager_v1_create(m_sWLDisplay); } CCompositor::~CCompositor() { @@ -118,6 +122,7 @@ void CCompositor::initAllSignals() { addWLSignal(&m_sWLROutputMgr->events.test, &Events::listen_outputMgrTest, m_sWLROutputMgr, "OutputMgr"); addWLSignal(&m_sWLRInhibitMgr->events.activate, &Events::listen_InhibitActivate, m_sWLRInhibitMgr, "InhibitMgr"); addWLSignal(&m_sWLRInhibitMgr->events.deactivate, &Events::listen_InhibitDeactivate, m_sWLRInhibitMgr, "InhibitMgr"); + addWLSignal(&m_sWLRPointerConstraints->events.new_constraint, &Events::listen_newConstraint, m_sWLRPointerConstraints, "PointerConstraints"); } void CCompositor::startCompositor() { -- cgit v1.2.3