summaryrefslogtreecommitdiff
path: root/rcm-server.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2015-07-01 16:59:01 +0200
committerDavid Härdeman <david@hardeman.nu>2015-07-01 16:59:01 +0200
commitb6d82ecee6e38b83776d3a9d4637c51fc5151beb (patch)
tree6045c7440407e215a83df0e4aa37352440aa752b /rcm-server.c
parent99f8010565df11645582262f03c186036d4211c5 (diff)
Add support for actually reading keymaps
Diffstat (limited to 'rcm-server.c')
-rw-r--r--rcm-server.c4
1 files changed, 2 insertions, 2 deletions
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;
}