input: send null keycodes on focusSurface

This commit is contained in:
vaxerski 2023-04-10 22:37:55 +01:00
parent a38b0e736d
commit ea77622e04

View file

@ -937,7 +937,8 @@ void CCompositor::focusSurface(wlr_surface* pSurface, CWindow* pWindowOwner) {
if (!KEYBOARD) if (!KEYBOARD)
return; return;
wlr_seat_keyboard_notify_enter(m_sSeat.seat, pSurface, KEYBOARD->keycodes, KEYBOARD->num_keycodes, &KEYBOARD->modifiers); uint32_t keycodes[WLR_KEYBOARD_KEYS_CAP] = {0}; // TODO: maybe send valid, non-keybind codes?
wlr_seat_keyboard_notify_enter(m_sSeat.seat, pSurface, keycodes, 0, &KEYBOARD->modifiers);
wlr_seat_keyboard_focus_change_event event = { wlr_seat_keyboard_focus_change_event event = {
.seat = m_sSeat.seat, .seat = m_sSeat.seat,