# workspace: Implement focus-follows-mouse for panes \(\#46740\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 203f48d25cfd1a923a70941bdb388109f06d6e13

Requested commit: 203f48d25cfd1a923a70941bdb388109f06d6e13

Commit: 203f48d25cfd1a923a70941bdb388109f06d6e13

Tree: 7f33b46383a8f6dc2118ae4a098902b69592f18e

Author: Josh Robson Chase

Committer: GitHub

## Message

```
workspace: Implement focus-follows-mouse for panes (#46740)

Implements basic focus-follows-mouse behavior.

Right now, it's only applied in the `workspace` crate for `Pane`s, so
anything that lives outside of that container (panels and such for the
most part) won't have this behavior applied. The core logic is
implemented as an extension trait, and should be trivial to apply to
other elements as it makes sense.



https://github.com/user-attachments/assets/d338fa30-7f9c-439f-8b50-1720e3f509b1



Closes #8167 

Release Notes:

- Added "Focus Follows Mouse" for editor and terminal panes

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
```

## Parents

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

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