zed/crates/gpui_linux
Jakub Konka dc2a339d5d
gpui_linux: Fix Wayland serial token tracking (#61454)
Closes #58651 
Closes FR-123

https://github.com/zed-industries/zed/pull/50406/ while fixing one issue
regressed serial tracking in Wayland. What happens is we conflated
unrelated serials into a common value which is wrong. For example,
`InputMethod` serial does not come from the same source as `MousePress`
or `KeyPress`, and if Zed is running for a while and the user performs
lots of IME commits (`zwp_text_input_v3.commit`), `InputMethod` will
overtake other serial values and will be incorrectly used for clipboard
authorisation/selection by the compositor such as Mutter or kWin. This
will effectively poison the clipboard making Zed the indefinite owner
until we kill Zed. More concretely, we use `get_latest()` on the serial
tracker to extract *the largest serial REGARDLESS of kind* which is
wrong since not every serial kind comes from the same pool.

Release Notes:

- Fixed copy-paste behaviour in Wayland.
2026-07-22 12:46:55 +00:00
..
src gpui_linux: Fix Wayland serial token tracking (#61454) 2026-07-22 12:46:55 +00:00
Cargo.toml zed: Unify dependencies (#61381) 2026-07-21 07:58:16 +00:00
LICENSE-APACHE