mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-15 22:05:20 -05:00
opt: optimize keymap set
This commit is contained in:
parent
86cedaadca
commit
c69b736d0e
3 changed files with 7 additions and 3 deletions
|
|
@ -868,7 +868,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