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
3722275cfaThorsten Ball committed on 6/11/2024, 9:00:26 AM· committed by GitHubparentef84ce7
1 file changedLine totals unavailable