# Focus new item if pane was focused when removing previous active item · gitcafe/zed

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

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

Visibility: public

Requested revision: 37d3ed5f5f6358d44d0546e24d709b8d3e804787

Requested commit: 37d3ed5f5f6358d44d0546e24d709b8d3e804787

Commit: 37d3ed5f5f6358d44d0546e24d709b8d3e804787

Tree: 502ce2e544fe73b6b56d3853616bef8aa8175ac7

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Focus new item if pane was focused when removing previous active item

Previously, we were relying on the item getting blurred and the workspace
receiving focus, which would in turn focus the active pane. This doesn't
play well with docks because they aren't part of the workspace panes.

```

## Parents

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

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