From ea77622e0423676dc436f24bc188f13495807a45 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 10 Apr 2023 22:37:55 +0100 Subject: [PATCH] input: send null keycodes on focusSurface --- src/Compositor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 14fd0c98..a9b5cba5 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -937,7 +937,8 @@ void CCompositor::focusSurface(wlr_surface* pSurface, CWindow* pWindowOwner) { if (!KEYBOARD) 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 = { .seat = m_sSeat.seat,