aboutsummaryrefslogtreecommitdiff
path: root/examples/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/config.c')
-rw-r--r--examples/config.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/config.c b/examples/config.c
index bca2b44b..909a2463 100644
--- a/examples/config.c
+++ b/examples/config.c
@@ -67,6 +67,12 @@ static int config_ini_handler(void *user, const char *section, const char *name,
wlr_log(L_ERROR, "got unknown transform value: %s", value);
}
}
+ } else if (strcmp(section, "cursor") == 0) {
+ if (strcmp(name, "map-to-output") == 0) {
+ config->cursor.mapped_output = strdup(value);
+ } else {
+ wlr_log(L_ERROR, "got unknown cursor config: %s", name);
+ }
} else {
wlr_log(L_ERROR, "got unknown config section: %s", section);
}
@@ -128,6 +134,9 @@ void example_config_destroy(struct example_config *config) {
if (config->config_path) {
free(config->config_path);
}
+ if (config->cursor.mapped_output) {
+ free(config->cursor.mapped_output);
+ }
free(config);
}