From 3904351678f9e76ee67896e39641c82efbb9ed01 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 28 Jul 2022 12:00:10 +0200 Subject: Added layoutmsg and some master layout msgs --- src/managers/KeybindManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/managers/KeybindManager.cpp') diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 9910ed6c..15ff0533 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -34,6 +34,7 @@ CKeybindManager::CKeybindManager() { m_mDispatchers["focuswindow"] = focusWindow; m_mDispatchers["submap"] = setSubmap; m_mDispatchers["pass"] = pass; + m_mDispatchers["layoutmsg"] = layoutmsg; m_tScrollTimer.reset(); } @@ -1303,4 +1304,9 @@ void CKeybindManager::pass(std::string regexp) { wlr_seat_keyboard_notify_key(g_pCompositor->m_sSeat.seat, g_pKeybindManager->m_uTimeLastMs, g_pKeybindManager->m_uLastCode - 8, WLR_BUTTON_RELEASED); wlr_seat_keyboard_notify_enter(g_pCompositor->m_sSeat.seat, PLASTSRF, KEYBOARD->keycodes, KEYBOARD->num_keycodes, &KEYBOARD->modifiers); +} + +void CKeybindManager::layoutmsg(std::string msg) { + SLayoutMessageHeader hd = {g_pCompositor->m_pLastWindow}; + g_pLayoutManager->getCurrentLayout()->layoutMessage(hd, msg); } \ No newline at end of file -- cgit v1.2.3