mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-02 09:01:43 -05:00
opt: optimize keymap set
This commit is contained in:
parent
25067738ed
commit
bf6644c9f5
3 changed files with 7 additions and 3 deletions
|
|
@ -865,7 +865,7 @@ int switch_keyboard_layout(const Arg *arg) {
|
|||
if (!check_keyboard_rules_validate(&rules)) {
|
||||
wlr_log(WLR_ERROR,
|
||||
"Keyboard rules validation failed, skipping layout reset");
|
||||
rules = xkb_fallback_rules;
|
||||
rules = xkb_default_rules;
|
||||
}
|
||||
|
||||
char *layout_buf = (char *)rules.layout; // 假设这是可修改的
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue