# gpui: Add resizable and minimizable state to Window \(\#61473\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e99616cdd4663ac5d29ae92bbd7ea1629689d4c8

Requested commit: e99616cdd4663ac5d29ae92bbd7ea1629689d4c8

Commit: e99616cdd4663ac5d29ae92bbd7ea1629689d4c8

Tree: 1e5a0132726fb80f30e191adedb3f72d14d237ea

Author: Mayank Verma

Committer: GitHub

## Message

```
gpui: Add resizable and minimizable state to Window (#61473)

### Objective

PR #36859 made native macOS and Windows controls respect `is_resizable`
and `is_minimizable`, but custom window decorations cannot access those
values from `Window`. Linux custom controls and client-side resize
interactions remain active, macOS custom titlebar double-click does not
check either option and custom Windows caption buttons still appear
enabled even though the backend blocks their actions.

### Solution

Expose `is_resizable` and `is_minimizable` on `Window`. Use them to
disable custom window controls and titlebar actions and omit client-side
resize cursors and hitboxes for non-resizable windows.

## Self-Review Checklist:

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

Release Notes:

- N/A
```

## Parents

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

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