# Fix panic in window open \(\#4148\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2166f071b3215beb0b3bc97f67ff67f6e2324961

Requested commit: 2166f071b3215beb0b3bc97f67ff67f6e2324961

Commit: 2166f071b3215beb0b3bc97f67ff67f6e2324961

Tree: 64726f381682f5e45dbf540454566fff296c9c6e

Author: Conrad Irwin

Committer: GitHub

## Message

```
Fix panic in window open (#4148)

Fix a panic caused by toggleFullScreen on one window untoggling
full-screen on
another.

I managed to reproduce this only once, which makes me sad, but this
change
should fix it regardless.

https://zed-industries.slack.com/archives/C04S6T1T7TQ/p1705631681238979

Release Notes:

- Fixed an occasional panic when opening a new fullscreen window.
```

## Parents

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

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

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