mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-02 06:46:29 -04:00
Merge branch 'DreamMaoMao:main' into main
This commit is contained in:
commit
1341f843e9
4 changed files with 10 additions and 1 deletions
|
|
@ -915,7 +915,13 @@ int32_t switch_keyboard_layout(const Arg *arg) {
|
|||
wlr_log(WLR_INFO, "Only one layout available");
|
||||
return 0;
|
||||
}
|
||||
xkb_layout_index_t next = (current + 1) % num_layouts;
|
||||
|
||||
xkb_layout_index_t next = 0;
|
||||
if (arg->i > 0 && arg->i <= num_layouts) {
|
||||
next = arg->i - 1;
|
||||
} else {
|
||||
next = (current + 1) % num_layouts;
|
||||
}
|
||||
|
||||
// 6. Apply new keymap
|
||||
uint32_t depressed = keyboard->modifiers.depressed;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue