# linux/wayland: prevent possible panic \(\#8824\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c91969d828d79fb772116e8796af21b3dba1c6a4

Requested commit: c91969d828d79fb772116e8796af21b3dba1c6a4

Commit: c91969d828d79fb772116e8796af21b3dba1c6a4

Tree: 77d274f9119665ae7068aff7197243e50e58d528

Author: Rom Grk

Committer: GitHub

## Message

```
linux/wayland: prevent possible panic (#8824)

Prevent a panic from arising from this case:
https://github.com/zed-industries/zed/pull/8632#discussion_r1510015928

It's not really safe to dispatch any action before dropping the state
borrow, because it may need to be modified.
```

## Parents

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

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