summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-30 09:16:00 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-30 09:16:00 +0200
commit3d7abfea92222658e6c4afd04c90ed4ed92a7951 (patch)
tree4019e6c590cf5fa2b29cc9ef031753e632617592 /src
parent2de65771eaa8864c7901b436808f892c00c0c1ba (diff)
Log keybind dispatchers only
Diffstat (limited to 'src')
-rw-r--r--src/managers/InputManager.cpp3
-rw-r--r--src/managers/KeybindManager.cpp1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/managers/InputManager.cpp b/src/managers/InputManager.cpp
index 446ce369..479abbed 100644
--- a/src/managers/InputManager.cpp
+++ b/src/managers/InputManager.cpp
@@ -221,7 +221,6 @@ void CInputManager::onMouseButton(wlr_pointer_button_event* e) {
// notify app if we didnt handle it
if (g_pCompositor->doesSeatAcceptInput(g_pCompositor->m_pLastFocus)) {
wlr_seat_pointer_notify_button(g_pCompositor->m_sSeat.seat, e->time_msec, e->button, e->state);
- Debug::log(LOG, "Seat notified of button %i (state %i) on surface %x", e->button, e->state, g_pCompositor->m_pLastFocus);
}
}
@@ -360,8 +359,6 @@ void CInputManager::onKeyboardKey(wlr_keyboard_key_event* e, SKeyboard* pKeyboar
bool found = false;
if (e->state == WL_KEYBOARD_KEY_STATE_PRESSED) {
- Debug::log(LOG, "Pressed key %i, with the MODMASK being %i", e->keycode, MODS);
-
for (int i = 0; i < syms; ++i)
found = g_pKeybindManager->handleKeybinds(MODS, keysyms[i]) || found;
} else if (e->state == WL_KEYBOARD_KEY_STATE_RELEASED) {
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index 85ba29bc..57412d88 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -89,6 +89,7 @@ bool CKeybindManager::handleKeybinds(const uint32_t& modmask, const xkb_keysym_t
Debug::log(ERR, "Inavlid handler in a keybind! (handler %s does not exist)", k.handler.c_str());
} else {
// call the dispatcher
+ Debug::log(LOG, "Keybind triggered, calling dispatcher (%d, %s)", modmask, KBKEYUPPER);
DISPATCHER->second(k.arg);
}