# linux: Fix duplicate IME input on Wayland and Sunshine remotes \(\#46560\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d92f47746f3eb83e90de8319f0e945a7b2fb8ed0

Requested commit: d92f47746f3eb83e90de8319f0e945a7b2fb8ed0

Commit: d92f47746f3eb83e90de8319f0e945a7b2fb8ed0

Tree: c872bc18bf8af7947d96800c165e64b431964177

Author: Bo He

Committer: GitHub

## Message

```
linux: Fix duplicate IME input on Wayland and Sunshine remotes (#46560)

## Summary
This PR fixes a issue where Chinese characters (and other IME-based
inputs) would duplicate in the editor on Linux Wayland after remote
desktop connected (e.g., via Sunshine) .

## Steps to Reproduce
requirement: linux with wayland, and Sunshine(this is remote desktop
server) installed
1. opening zed
2. using other device connect to Sunshine
3. input Chinese characters such as "的"

### Expected Result
"的"

### Actual Result
"的的"

### bug recording

https://github.com/user-attachments/assets/d18961ec-48cb-4c06-a396-9fc604591769
```

## Parents

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

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