summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/events/Events.cpp4
-rw-r--r--src/managers/InputManager.cpp4
2 files changed, 3 insertions, 5 deletions
diff --git a/src/events/Events.cpp b/src/events/Events.cpp
index 870525ee..071b4c92 100644
--- a/src/events/Events.cpp
+++ b/src/events/Events.cpp
@@ -364,9 +364,7 @@ void Events::listener_newInput(wl_listener* listener, void* data) {
break;
}
- uint32_t capabilities = WL_SEAT_CAPABILITY_POINTER;
-
- // todo: keyboard caps
+ uint32_t capabilities = WL_SEAT_CAPABILITY_POINTER | WL_SEAT_CAPABILITY_KEYBOARD;
wlr_seat_set_capabilities(g_pCompositor->m_sWLRSeat, capabilities);
}
diff --git a/src/managers/InputManager.cpp b/src/managers/InputManager.cpp
index 74945ff5..725ce672 100644
--- a/src/managers/InputManager.cpp
+++ b/src/managers/InputManager.cpp
@@ -137,9 +137,9 @@ void CInputManager::onKeyboardKey(wlr_event_keyboard_key* e, SKeyboard* pKeyboar
if (e->state == WL_KEYBOARD_KEY_STATE_PRESSED) {
// TODO: keybinds
- Debug::log(LOG, "Keyboard %x key %i pressed on focused window %x", pKeyboard, KEYCODE, g_pCompositor->m_pLastFocus);
+
} else if (e->state == WL_KEYBOARD_KEY_STATE_RELEASED) {
- Debug::log(LOG, "Keyboard %x key %i released on focused window %x", pKeyboard, KEYCODE, g_pCompositor->m_pLastFocus);
+
}
wlr_seat_set_keyboard(g_pCompositor->m_sWLRSeat, pKeyboard->keyboard);