summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-28 12:00:10 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-28 12:00:10 +0200
commit3904351678f9e76ee67896e39641c82efbb9ed01 (patch)
treee7e0a516c18ec05260d1dca12eefec02a87171cd /src/managers/KeybindManager.cpp
parentb6f2a4bc364b7e9d125d6dbe12632de15912b37a (diff)
Added layoutmsg and some master layout msgs
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp6
1 files changed, 6 insertions, 0 deletions
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