diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-11 10:11:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-11 10:11:31 -0500 |
commit | a538ef33c1f27d5180117933bee40ecd93fbea7a (patch) | |
tree | be639c73a782ecfd680dabc31d3a4e4208cba61f /rootston/config.c | |
parent | 78ed7f3c8983191b0b6399d4c66f5524a23f216a (diff) | |
parent | 2a9dc60f28616211370fcd48de8c75ef17282d2e (diff) |
Merge pull request #384 from acrisci/feature/multiseat
multiseat
Diffstat (limited to 'rootston/config.c')
-rw-r--r-- | rootston/config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rootston/config.c b/rootston/config.c index ff02ff1d..54f10fcd 100644 --- a/rootston/config.c +++ b/rootston/config.c @@ -13,6 +13,7 @@ #include <wlr/types/wlr_box.h> #include "rootston/config.h" #include "rootston/input.h" +#include "rootston/keyboard.h" #include "rootston/ini.h" static void usage(const char *name, int ret) { @@ -292,6 +293,7 @@ static int config_ini_handler(void *user, const char *section, const char *name, if (!found) { dc = calloc(1, sizeof(struct device_config)); dc->name = strdup(device_name); + dc->seat = strdup("seat0"); wl_list_insert(&config->devices, &dc->link); } @@ -301,6 +303,9 @@ static int config_ini_handler(void *user, const char *section, const char *name, } else if (strcmp(name, "geometry") == 0) { free(dc->mapped_box); dc->mapped_box = parse_geometry(value); + } else if (strcmp(name, "seat") == 0) { + free(dc->seat); + dc->seat = strdup(value); } else { wlr_log(L_ERROR, "got unknown device config: %s", name); } @@ -390,6 +395,7 @@ void roots_config_destroy(struct roots_config *config) { struct device_config *dc, *dtmp = NULL; wl_list_for_each_safe(dc, dtmp, &config->devices, link) { free(dc->name); + free(dc->seat); free(dc->mapped_output); free(dc->mapped_box); free(dc); |