# linux: Fix crash when NoKeymap event is received on Wayland \(\#24379\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6534e0bafda9d119a0a28fcda8dbe76afb7016a4

Requested commit: 6534e0bafda9d119a0a28fcda8dbe76afb7016a4

Commit: 6534e0bafda9d119a0a28fcda8dbe76afb7016a4

Tree: faa679695b73c4eb823b47b4b5962b598bcb040d

Author: smit

Committer: GitHub

## Message

```
linux: Fix crash when NoKeymap event is received on Wayland (#24379)

Closes #24139

For weird reasons, Sway on few linux distoros sends `NoKeymap` event when
switching windows. Zed crashes due to assertion on this event to be `XkbV1`.

To fix this, we ignore `NoKeymap` event instead crashing Zed.

Release Notes:

- Fixed a crash in Wayland-based compositors like Sway when switching windows via the keyboard.
```

## Parents

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

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