# linux/x11: Only create ModifiersChanged event if they changed \(\#12879\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3722275cfaf7a2324164d194c44138771210e1d0

Requested commit: 3722275cfaf7a2324164d194c44138771210e1d0

Commit: 3722275cfaf7a2324164d194c44138771210e1d0

Tree: 995f15bed3594d68d4c4ace93073091185016859

Author: Thorsten Ball

Committer: GitHub

## Message

```
linux/x11: Only create ModifiersChanged event if they changed (#12879)

I noticed that when I use my mouse wheel, we get a ton of the
`XkbStateNotify` events, but the modifiers don't change, so we add a ton
of useless input events for the window.

Release Notes:

- N/A
```

## Parents

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

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