mirror of https://github.com/hyprwm/Hyprland
fix keyboard
This commit is contained in:
parent
03da5a3ef5
commit
8cc0f35fbb
|
@ -364,9 +364,7 @@ void Events::listener_newInput(wl_listener* listener, void* data) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t capabilities = WL_SEAT_CAPABILITY_POINTER;
|
uint32_t capabilities = WL_SEAT_CAPABILITY_POINTER | WL_SEAT_CAPABILITY_KEYBOARD;
|
||||||
|
|
||||||
// todo: keyboard caps
|
|
||||||
|
|
||||||
wlr_seat_set_capabilities(g_pCompositor->m_sWLRSeat, capabilities);
|
wlr_seat_set_capabilities(g_pCompositor->m_sWLRSeat, capabilities);
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,9 +137,9 @@ void CInputManager::onKeyboardKey(wlr_event_keyboard_key* e, SKeyboard* pKeyboar
|
||||||
|
|
||||||
if (e->state == WL_KEYBOARD_KEY_STATE_PRESSED) {
|
if (e->state == WL_KEYBOARD_KEY_STATE_PRESSED) {
|
||||||
// TODO: keybinds
|
// 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) {
|
} 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);
|
wlr_seat_set_keyboard(g_pCompositor->m_sWLRSeat, pKeyboard->keyboard);
|
||||||
|
|
Loading…
Reference in New Issue