]> git.mdlowis.com Git - proto/labwc.git/commit
IME: don't forward key-release without correspinding key-press
authortokyo4j <hrak1529@gmail.com>
Tue, 17 Dec 2024 03:06:05 +0000 (12:06 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Tue, 17 Dec 2024 07:38:09 +0000 (16:38 +0900)
commit683f67b7612e0a37adab346bf9bc3224a5eefbde
tree9579f64bb6ed5a62d29cea0ef17b8d1b9e887499
parent5766bec70afaef4f21e075844b0e7b3137d55411
IME: don't forward key-release without correspinding key-press

After commit e2189903 in wlroots, when ctrl-f is pressed in firefox with
a IME client running, the following key-release event for "f" is not
sent, thus "f" is repeated like "ffffffffff..." in the input box of
firefox. This is because the key-release event for "f" is firstly
forwarded to the IME client and then sent via the virtual keyboard created
by the IME client while the key-press event is sent via physical
keyboard, and with e2189903, key-release events without a corresponding
key-press event on the same keyboard is not emitted to the compositor.

So this commit fixes this problem by not forwarding the key-release event
to the IME client unless the corresponding key-press event was also
forwarded.
include/input/ime.h
src/input/ime.c