x11: Fix keymap reload to happen on XkbMapNotify not MapNotify (#32771)

Keyboard hot reloading was added in #15059, but also reloaded this on
MapNotify instead of XkbMapNotify, so it wasn't handling keymap change
events and was instead reloading when windows are mapped (typically when
they go from a minimized / other workspace state to being visible).

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-06-15 17:33:44 -06:00 committed by GitHub
parent 61771e7e4a
commit 3595dbb155
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -826,7 +826,7 @@ impl X11Client {
self.reset_ime();
window.handle_ime_delete();
}
Event::XkbNewKeyboardNotify(_) | Event::MapNotify(_) => {
Event::XkbNewKeyboardNotify(_) | Event::XkbMapNotify(_) => {
let mut state = self.0.borrow_mut();
let xkb_state = {
let xkb_keymap = xkbc::x11::keymap_new_from_device(