SDL: Store the requested muted state

From 7cc3e94eb22f2ee76742bfb4c101757fcb70c4b7 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 8 Nov 2023 03:36:47 -0800
Subject: [PATCH] Store the requested muted state

---
 src/core/linux/SDL_evdev_kbd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/core/linux/SDL_evdev_kbd.c b/src/core/linux/SDL_evdev_kbd.c
index a58129dea1a0..d7db2615f69d 100644
--- a/src/core/linux/SDL_evdev_kbd.c
+++ b/src/core/linux/SDL_evdev_kbd.c
@@ -393,6 +393,7 @@ void SDL_EVDEV_kbd_set_muted(SDL_EVDEV_keyboard_state *state, SDL_bool muted)
         /* Restore the original keyboard mode */
         ioctl(state->console_fd, KDSKBMODE, state->old_kbd_mode);
     }
+    state->muted = muted;
 }
 
 /*