summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-10 22:37:55 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-10 22:37:55 +0100
commitea77622e0423676dc436f24bc188f13495807a45 (patch)
tree3bbdaf1d1c3b675bfc11b4d1923209615e8a00a9 /src/Compositor.cpp
parenta38b0e736d283543a2ffb8f7faef9f0ca591ac60 (diff)
input: send null keycodes on focusSurface
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp3
1 files changed, 2 insertions, 1 deletions
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,