mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-29 21:37:42 -04:00
opt: ipc send keyboard layout fullname
This commit is contained in:
parent
ce7fc8a4ea
commit
d702cc2c22
1 changed files with 2 additions and 2 deletions
|
|
@ -66,8 +66,8 @@ static const char *ipc_get_layout_str(void) {
|
|||
xkb_layout_index_t current = xkb_state_serialize_layout(
|
||||
keyboard->xkb_state, XKB_STATE_LAYOUT_EFFECTIVE);
|
||||
static char layout[32];
|
||||
get_layout_abbr(layout,
|
||||
xkb_keymap_layout_get_name(keyboard->keymap, current));
|
||||
const char *name = xkb_keymap_layout_get_name(keyboard->keymap, current);
|
||||
snprintf(layout, sizeof(layout), "%s", name ? name : "");
|
||||
return layout;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue