summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-19 13:28:02 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-19 13:28:02 +0100
commit8cc0f35fbb959b65eb99beedd0bac17a587a2b0c (patch)
treebea53ec6d0952ad072ce6fd3a651141999e7ab0b /src
parent03da5a3ef55555a76c75f797ed1628478bf8cc9d (diff)
fix keyboard
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);