# Fix tab bar button's focus handling lagging behind \(\#4247\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2ce24dc74631501e711a86ec50e8a7d0187a344f

Requested commit: 2ce24dc74631501e711a86ec50e8a7d0187a344f

Commit: 2ce24dc74631501e711a86ec50e8a7d0187a344f

Tree: 6cb7fa143f1e890e589b12db7cd688d2d44bb8c3

Author: Thorsten Ball

Committer: GitHub

## Message

```
Fix tab bar button's focus handling lagging behind (#4247)

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.

### Before


https://github.com/zed-industries/zed/assets/1185253/24b56e51-467b-4a09-909f-72ee6f76f32c

### After



https://github.com/zed-industries/zed/assets/1185253/18865f49-d00e-453a-8a38-aee15f06beb8



### Release Notes:

- (Added|Fixed|Improved) ...
([#<public_issue_number_if_exists>](https://github.com/zed-industries/community/issues/<public_issue_number_if_exists>)).
```

## Parents

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

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

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