mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-09 03:05:58 +01:00
input: send null keycodes on focusSurface
This commit is contained in:
parent
a38b0e736d
commit
ea77622e04
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue