# Preserve and restore focus across window activation cycles \(\#47044\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4064af34584a4574ae4a270cd4c6b73a730f042d

Requested commit: 4064af34584a4574ae4a270cd4c6b73a730f042d

Commit: 4064af34584a4574ae4a270cd4c6b73a730f042d

Tree: 0b56baaf5bbeab2cfa6e42ba91856f2e84e44487

Author: Mikayla Maki

Committer: GitHub

## Message

```
Preserve and restore focus across window activation cycles (#47044)

Closes https://github.com/zed-industries/zed/issues/46953

This turned out to be a pretty deep rabbit hole, ultimately landing in
how GPUI didn't restore focus nicely when swapping window activation
states.

Release Notes:

- N/A

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
```

## Parents

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

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