# sidebar: Fix title bar upon moving workspace to a new window \(\#52266\) · gitcafe/zed

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

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

Visibility: public

Requested revision: eeafae370b6681b49690066f671c17599247546c

Requested commit: eeafae370b6681b49690066f671c17599247546c

Commit: eeafae370b6681b49690066f671c17599247546c

Tree: 431e363eb6c52a7b8ad43d3d92f7126204d70fe0

Author: Danilo Leal

Committer: GitHub

## Message

```
sidebar: Fix title bar upon moving workspace to a new window (#52266)

## Context

This PR adds a function to sync up the title bar state if a workspace is
moved to a new window through the threads sidebar. This is needed
because otherwise the padding for the traffic control buttons on macOS
wasn't being taken into consideration.

## How to Review

- Move a project to a new window from the sidebar 
- See that the title bar for that new window looks normal, as it should

---

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

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

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