Revert "wlr_keyboard: don't emit key event for duplicated keycodes"

This reverts commit 86eaa44a3a.

That commit caused a regression for IME users in many compositors:
when a input_method is activated while a key is pressed, and a virtual
keyboard is created by IME, the following key-release event via the
virtual keyboard is missed since the key in the virtual keyboard haven't
been pressed. For example, pressing and releasing Ctrl+F in Firefox with
fcitx5 running triggered repeated keys (ffffff...) in the opened input
box.
This commit is contained in:
tokyo4j 2025-02-15 01:13:15 +09:00
parent e9450a9947
commit bd8454d3bc
2 changed files with 4 additions and 8 deletions

View file

@ -1,6 +1,6 @@
#include <wlr/types/wlr_keyboard.h>
bool keyboard_key_update(struct wlr_keyboard *keyboard,
void keyboard_key_update(struct wlr_keyboard *keyboard,
struct wlr_keyboard_key_event *event);
bool keyboard_modifier_update(struct wlr_keyboard *keyboard);