From b6d82ecee6e38b83776d3a9d4637c51fc5151beb Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Wed, 1 Jul 2015 16:59:01 +0200 Subject: Add support for actually reading keymaps --- rcm-server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rcm-server.c') diff --git a/rcm-server.c b/rcm-server.c index 26620fc..11223b1 100644 --- a/rcm-server.c +++ b/rcm-server.c @@ -154,8 +154,8 @@ method_getkeymap(sd_bus_message *m, void *userdata, sd_bus_error *error) for (i = 0; i < (keymap->rows * keymap->cols); i++) { r = sd_bus_message_append(reply, "a{sv}", 2, - "name", "s", keymap->keycodes[i].name, - "keycode", "s", keymap->keycodes[i].value); + "name", "s", keymap->layout[i]->name, + "keycode", "s", keymap->layout[i]->value); if (r < 0) goto out; } -- cgit v1.2.3