# Fix tab bar button's focus handling lagging behind · gitcafe/zed

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

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

Visibility: public

Requested revision: 027f425804cbe0e7bd6f90ce36c5886fec4ae2c3

Requested commit: 027f425804cbe0e7bd6f90ce36c5886fec4ae2c3

Commit: 027f425804cbe0e7bd6f90ce36c5886fec4ae2c3

Tree: 2173a813399768533b26cd2a46b538e2d60b067c

Author: Thorsten Ball

Committer: Thorsten Ball

## Message

```
Fix tab bar button's focus handling lagging behind

This fixes https://github.com/zed-industries/community/issues/2442 for
me.

Previously, the tab bar buttons would stay when the chat panel was
opened (and received focus) until something else was drawn (or caused a
render?)

With this change, the tab bar buttons are only shown if the pane was
focus.

I'm not sure about the side-effects of this, but the toolbar still seems
to work fine.

```

## Parents

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

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