From e3373669e5544c3f18cf1edcd8fcfff9c6222f5c Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 27 Feb 2024 23:14:56 +0000 Subject: wayland: implement keyboard_shortcuts_inhibit_v1 fixes #4568 --- src/Compositor.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index c290a49d..f0d7ca0f 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -307,6 +307,7 @@ void CCompositor::initAllSignals() { addWLSignal(&m_sWLRGammaCtrlMgr->events.set_gamma, &Events::listen_setGamma, m_sWLRGammaCtrlMgr, "GammaCtrlMgr"); addWLSignal(&m_sWLRCursorShapeMgr->events.request_set_shape, &Events::listen_setCursorShape, m_sWLRCursorShapeMgr, "CursorShapeMgr"); addWLSignal(&m_sWLRTearingControlMgr->events.new_object, &Events::listen_newTearingHint, m_sWLRTearingControlMgr, "TearingControlMgr"); + addWLSignal(&m_sWLRKbShInhibitMgr->events.new_inhibitor, &Events::listen_newShortcutInhibitor, m_sWLRKbShInhibitMgr, "ShortcutInhibitMgr"); if (m_sWRLDRMLeaseMgr) addWLSignal(&m_sWRLDRMLeaseMgr->events.request, &Events::listen_leaseRequest, &m_sWRLDRMLeaseMgr, "DRM"); @@ -360,6 +361,7 @@ void CCompositor::removeAllSignals() { removeWLSignal(&Events::listen_setGamma); removeWLSignal(&Events::listen_setCursorShape); removeWLSignal(&Events::listen_newTearingHint); + removeWLSignal(&Events::listen_newShortcutInhibitor); if (m_sWRLDRMLeaseMgr) removeWLSignal(&Events::listen_leaseRequest); -- cgit v1.2.3