mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
fix: wrong index of kb layout for ipc message
This commit is contained in:
parent
11dceb785c
commit
53128416d6
1 changed files with 4 additions and 1 deletions
|
|
@ -111,6 +111,7 @@ void dwl_ipc_output_printstatus_to(DwlIpcOutput *ipc_output) {
|
|||
Monitor *monitor = ipc_output->mon;
|
||||
Client *c, *focused;
|
||||
struct wlr_keyboard *keyboard;
|
||||
xkb_layout_index_t current;
|
||||
int tagmask, state, numclients, focused_client, tag;
|
||||
const char *title, *appid, *symbol, *kb_layout;
|
||||
focused = focustop(monitor);
|
||||
|
|
@ -141,8 +142,10 @@ void dwl_ipc_output_printstatus_to(DwlIpcOutput *ipc_output) {
|
|||
symbol = monitor->pertag->ltidxs[monitor->pertag->curtag]->symbol;
|
||||
|
||||
keyboard = &kb_group->wlr_group->keyboard;
|
||||
current = xkb_state_serialize_layout(keyboard->xkb_state,
|
||||
XKB_STATE_LAYOUT_EFFECTIVE);
|
||||
kb_layout =
|
||||
get_layout_abbr(xkb_keymap_layout_get_name(keyboard->keymap, 0));
|
||||
get_layout_abbr(xkb_keymap_layout_get_name(keyboard->keymap, current));
|
||||
|
||||
zdwl_ipc_output_v2_send_layout(
|
||||
ipc_output->resource,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue