search: do not emit composing keys

When we are in the composing state for XCompose key sequences, we
should not add the compose component keys to the search buffer.
This commit is contained in:
Ronan Pigott 2025-10-31 15:11:53 -07:00 committed by Daniel Eklöf
parent 5ae4955e83
commit 143f220527
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 6 additions and 1 deletions

View file

@ -73,6 +73,10 @@
### Deprecated ### Deprecated
### Removed ### Removed
### Fixed ### Fixed
* Search mode: composing keys not ignored.
### Security ### Security
### Contributors ### Contributors

View file

@ -1484,7 +1484,8 @@ search_input(struct seat *seat, struct terminal *term,
count = xkb_compose_state_get_utf8( count = xkb_compose_state_get_utf8(
seat->kbd.xkb_compose_state, (char *)buf, sizeof(buf)); seat->kbd.xkb_compose_state, (char *)buf, sizeof(buf));
xkb_compose_state_reset(seat->kbd.xkb_compose_state); xkb_compose_state_reset(seat->kbd.xkb_compose_state);
} else if (compose_status == XKB_COMPOSE_CANCELLED) { } else if (compose_status == XKB_COMPOSE_CANCELLED ||
compose_status == XKB_COMPOSE_COMPOSING) {
count = 0; count = 0;
} else { } else {
count = xkb_state_key_get_utf8( count = xkb_state_key_get_utf8(