Skip to content

6b2eca7

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 05 Dec 20:12

fix(input): Take the Wayland seat keymap afresh as a transport starts

The WebSockets and WebRTC services each have an input handler
(server/mod.rs), and on Wayland both type through the one compositor
seat with a keymap owner of their own; the mode supervisor runs one
service at a time and switches at runtime. The handler that served last
left its overlay binds spliced on the seat, which the next one's owner
indexed as base keys and dropped at its first bind, so 'ä' bound over
WebSockets typed XF86Tools over WebRTC once that had bound 'é'. And a
handler coming back kept the owner and the client layout it had: after
a WebRTC page's hint moved the seat to de, WebSockets typed 'y' on the
us keycode, which de gives 'z'.

connect, which each service runs as it starts, now takes the keymap
afresh before it pushes the deployment layout: the handler releases
what its old owner held, forgets that owner and its client layout, and
clears the compositor's overlay, so the next owner builds on the base
alone and the next hint is applied.

transports_take_the_seat_keymap_in_turn types through two handlers on a
seat that keeps its keymap as the compositor does: without the clear
'ä' types XF86Tools after the other's bind, and with the clear but the
stale owner kept 'y' types 'z'; with this change both type true. cargo
test -p selkies --lib input:: passes (65). keyboard_layout-wr-wl passes
10 of 10 runs on this server; every keyboard_layout suite,
ime_composition, wayland_virtual_keyboard, wayland_layout_churn,
text_caret and the Wayland clipboard suites pass as on main (text_caret
x11 and x11-wr fail on both here: no at-spi-bus-launcher).