mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 03:45:58 +01:00
Fix stuck keys on X11 backend
This commit is contained in:
parent
e8df7c367a
commit
7c9b61b18c
1 changed files with 4 additions and 0 deletions
|
@ -123,6 +123,10 @@ void handle_x11_xinput_event(struct wlr_x11_backend *x11,
|
||||||
xcb_input_key_press_event_t *ev =
|
xcb_input_key_press_event_t *ev =
|
||||||
(xcb_input_key_press_event_t *)event;
|
(xcb_input_key_press_event_t *)event;
|
||||||
|
|
||||||
|
if (ev->flags & XCB_INPUT_KEY_EVENT_FLAGS_KEY_REPEAT) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
wlr_keyboard_notify_modifiers(&x11->keyboard, ev->mods.base,
|
wlr_keyboard_notify_modifiers(&x11->keyboard, ev->mods.base,
|
||||||
ev->mods.latched, ev->mods.locked, ev->mods.effective);
|
ev->mods.latched, ev->mods.locked, ev->mods.effective);
|
||||||
send_key_event(x11, ev->detail - 8, WL_KEYBOARD_KEY_STATE_PRESSED, ev->time);
|
send_key_event(x11, ev->detail - 8, WL_KEYBOARD_KEY_STATE_PRESSED, ev->time);
|
||||||
|
|
Loading…
Reference in a new issue