# windows: Dialog QoL improvements \(\#33241\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 272fc672afcfce7a89a317be09967895f5b3b419

Requested commit: 272fc672afcfce7a89a317be09967895f5b3b419

Commit: 272fc672afcfce7a89a317be09967895f5b3b419

Tree: 4cce424e61fe09bf31e990eb7b8c7e56656c34d0

Author: 张小白

Committer: GitHub

## Message

```
windows: Dialog QoL improvements (#33241)

Just like in the previous PR #33230, we need to properly set up modal
windows to make them work as expected.

Before this PR, when you opened an "Open File" or "Save File" dialog,
clicking the main window would steal focus from the modal, even though
the main window wasn’t actually interactive.

With this PR, clicking the main window while a modal is open does
nothing — as it should — until the modal is closed.

#### Before



https://github.com/user-attachments/assets/9c6bdff0-1c46-49c1-a5ff-751c52c7d613

#### After



https://github.com/user-attachments/assets/8776bd28-85ff-4f32-8390-bcf5b4eec1fe





Release Notes:

- N/A
```

## Parents

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

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