module/xkb: log initial state

This commit is contained in:
Daniel Eklöf 2019-01-19 17:05:34 +01:00
parent 502c2bd746
commit 174b1f05e0

View file

@ -590,6 +590,13 @@ talk_to_xkb(struct module *mod, xcb_connection_t *conn)
LOG_DBG("%s: %s", name, enabled ? "enabled" : "disabled"); LOG_DBG("%s: %s", name, enabled ? "enabled" : "disabled");
} }
LOG_INFO("layout: %s (%s), caps-lock:%s, num-lock:%s, scroll-lock:%s",
layouts.layouts[m->current].name,
layouts.layouts[m->current].symbol,
caps_lock ? "on" : "off",
num_lock ? "on" : "off",
scroll_lock ? "on" : "off");
mtx_lock(&mod->lock); mtx_lock(&mod->lock);
m->layouts = layouts; m->layouts = layouts;
m->current = current; m->current = current;