# Fix Wayland IME handling with multiple windows \(\#58712\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 137e677a0561eb7284cfad1bedccea70155e2473

Requested commit: 137e677a0561eb7284cfad1bedccea70155e2473

Commit: 137e677a0561eb7284cfad1bedccea70155e2473

Tree: 1c07294df5febeb3e3a3c4f40d5f5810ee7c78c1

Author: feeiyu

Committer: GitHub

## Message

```
Fix Wayland IME handling with multiple windows (#58712)

Self-Review Checklist:

- [X] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

Fix an issue introduced by PR #58237 where IME could not be enabled when
multiple windows were open.
The fix ensures that `update_ime_enabled` only updates IME state for the
active window.

Release Notes:

- N/A
```

## Parents

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

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