# Fix disabled Windows window controls \(\#60440\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7194f987a74317881768b4d3a5ce1cc93a3228bd

Requested commit: 7194f987a74317881768b4d3a5ce1cc93a3228bd

Commit: 7194f987a74317881768b4d3a5ce1cc93a3228bd

Tree: 19d4b043693a1fbaaa800450203e2e97f8b11f0a

Author: 迷渡

Committer: GitHub

## Message

```
Fix disabled Windows window controls (#60440)

## Summary

- Store Windows window minimizable and resizable capabilities on
`WindowsWindowInner`.
- Prevent custom titlebar hit testing from returning minimize/maximize
button hit targets when the corresponding capability is disabled.
- Swallow disabled native non-client minimize/maximize button mouse
events so they cannot fall through to the default window procedure or
GPUI's manual `ShowWindowAsync` handling.

Fixes #52067.

## Validation

- `cargo fmt --package gpui_windows`
- `cargo check -p gpui_windows`
- `git diff --check`

Release Notes:

- Fixed disabled minimize and maximize window controls still activating
on Windows.
```

## Parents

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

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