# gpui_macos: Fix deadlock during re-entrant key status changes \(\#51035\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 97049a76baaf2299be73fafa06910ccf060e7589

Requested commit: 97049a76baaf2299be73fafa06910ccf060e7589

Commit: 97049a76baaf2299be73fafa06910ccf060e7589

Tree: 67b35e94c5ba4170b5ce5488fbb7eb3d6c3700d5

Author: João Soares

Committer: GitHub

## Message

```
gpui_macos: Fix deadlock during re-entrant key status changes (#51035)

Closes #50151

Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Fixed a deadlock that froze the entire app when opening a new window
from a PopUp window or switching focus between multiple windows on
macOS.
```

## Parents

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

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