# windows: Fix maximized window size when DPI scale changes \(\#40053\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b41eb3cdaf492f990834a7ca78b5195eb169f68e

Requested commit: b41eb3cdaf492f990834a7ca78b5195eb169f68e

Commit: b41eb3cdaf492f990834a7ca78b5195eb169f68e

Tree: c03d107862456b49d59b4abf02ed25140526d497

Author: Xiaobo Liu

Committer: GitHub

## Message

```
windows: Fix maximized window size when DPI scale changes (#40053)

The WM_DPICHANGED suggested RECT is calculated for non-maximized
windows. When a maximized window's DPI changes, we now query the
monitor's work area directly to ensure the window correctly fills the
entire screen.

For non-maximized windows, the original behavior using the
system-suggested RECT is preserved.

Release Notes:

- windows: Fixed maximized window size when DPI scale changes

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
```

## Parents

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

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