From 174b1f05e0898adb9fda0460a8cf0d03523f7b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 19 Jan 2019 17:05:34 +0100 Subject: [PATCH] module/xkb: log initial state --- modules/xkb.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/xkb.c b/modules/xkb.c index 6aed440..9df8cad 100644 --- a/modules/xkb.c +++ b/modules/xkb.c @@ -590,6 +590,13 @@ talk_to_xkb(struct module *mod, xcb_connection_t *conn) 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); m->layouts = layouts; m->current = current;