# editor: Fix documentation tooltip reappearing after editor regains focus \(\#48924\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b165cd08ba9b5d4d25291da95f0e5ce3a9b9fc2c

Requested commit: b165cd08ba9b5d4d25291da95f0e5ce3a9b9fc2c

Commit: b165cd08ba9b5d4d25291da95f0e5ce3a9b9fc2c

Tree: 9f5f2c5b8b7bbd0a8dddf0150a88865aaa584ad1

Author: feeiyu

Committer: GitHub

## Message

```
editor: Fix documentation tooltip reappearing after editor regains focus (#48924)

Closes #48922

When the editor regains focus, it internally triggers the mouse_moved
logic again. This causes the hover documentation to be shown even if it
was previously dismissed due to user editing.

This change skips mouse_moved handling when the cursor is hidden,
preventing unintended tooltip popups.


[录屏 2026-02-11
19-04-14.webm](https://github.com/user-attachments/assets/ea9f9438-34bf-4771-bbc8-335e9ea59dd7)

- [x] Tests or screenshots needed?
- [x] Code Reviewed
- [x] Manual QA

Release Notes:

- Fixed documentation tooltip reappearing after editor regains focus
```

## Parents

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

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