Skip to content

Commit

Permalink
fix: Add modifier map init also on update keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyx committed Dec 7, 2023
1 parent 7f9c437 commit fcd45b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions window/src/os/x11/keyboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,12 @@ impl Keyboard {
self.state.replace(new_state);
self.keymap.replace(new_keymap);
self.phys_code_map.replace(phys_code_map);

let mod_map = match modifier_init {
ModifierInit::Wayland => init_modifier_table_wayland(&keymap),
ModifierInit::X11(conn) => init_modifier_table_x11(&conn, &keymap),
};

Ok(())
}
}
Expand Down

0 comments on commit fcd45b7

Please sign in to comment.