mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-30 21:37:39 -04:00
opt: ipc send keyboard layout fullname
This commit is contained in:
parent
25a5532935
commit
fc1e0d6e46
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(
|
xkb_layout_index_t current = xkb_state_serialize_layout(
|
||||||
keyboard->xkb_state, XKB_STATE_LAYOUT_EFFECTIVE);
|
keyboard->xkb_state, XKB_STATE_LAYOUT_EFFECTIVE);
|
||||||
static char layout[32];
|
static char layout[32];
|
||||||
get_layout_abbr(layout,
|
const char *name = xkb_keymap_layout_get_name(keyboard->keymap, current);
|
||||||
xkb_keymap_layout_get_name(keyboard->keymap, current));
|
snprintf(layout, sizeof(layout), "%s", name ? name : "");
|
||||||
return layout;
|
return layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue