# Use likely-newer KeyPress serial for wl clipboard \(\#13483\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ab5a462e0ca35d2abf4910f112b0b840e6fe716d)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ab5a462e0ca35d2abf4910f112b0b840e6fe716d

Requested commit: ab5a462e0ca35d2abf4910f112b0b840e6fe716d

Commit: ab5a462e0ca35d2abf4910f112b0b840e6fe716d

Tree: cbd4fbf39a72b8d6abde1b93c72bb59d6a996d7c

Author: Matt Fellenz

Committer: GitHub

## Message

```
Use likely-newer KeyPress serial for wl clipboard (#13483)

The KeyEnter serial will be too old if another client replaces the
selection before the user unfocuses and refocuses the window (i.e.,
triggers another KeyEnter event).
The KeyPress event is more likely to be new enough.

Release Notes:

- Fixed setting clipboard sometimes not working on wayland
([#13445](https://github.com/zed-industries/zed/issues/13445)).
```

## Parents

- [79430fc7d24fd7818ce374fac1434f3e19b93aff](https://git.cafe/gitcafe/zed/commit/79430fc7d24fd7818ce374fac1434f3e19b93aff?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ab5a462e0ca35d2abf4910f112b0b840e6fe716d?format=markdown)
