diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-14 11:11:56 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-14 11:11:56 -0500 |
commit | 92fef27eaa0b52c9d37bdabff14ae21cd6660f46 (patch) | |
tree | 7a923bbbc233079006597d82721117bae88b6ac6 /include/sway/config.h | |
parent | seat configuration (diff) | |
download | sway-92fef27eaa0b52c9d37bdabff14ae21cd6660f46.tar.gz sway-92fef27eaa0b52c9d37bdabff14ae21cd6660f46.tar.zst sway-92fef27eaa0b52c9d37bdabff14ae21cd6660f46.zip |
basic configuration
Diffstat (limited to 'include/sway/config.h')
-rw-r--r-- | include/sway/config.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index 9fcecfd6..5df5d61e 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -69,7 +69,22 @@ struct input_config { | |||
69 | 69 | ||
70 | bool capturable; | 70 | bool capturable; |
71 | struct wlr_box region; | 71 | struct wlr_box region; |
72 | char *seat; | 72 | }; |
73 | |||
74 | /** | ||
75 | * Options for misc device configurations that happen in the seat block | ||
76 | */ | ||
77 | struct seat_attachment_config { | ||
78 | char *identifier; | ||
79 | // TODO other things are configured here for some reason | ||
80 | }; | ||
81 | |||
82 | /** | ||
83 | * Options for multiseat and other misc device configurations | ||
84 | */ | ||
85 | struct seat_config { | ||
86 | char *name; | ||
87 | list_t *attachments; // list of seat_attachment configs | ||
73 | }; | 88 | }; |
74 | 89 | ||
75 | /** | 90 | /** |
@@ -260,6 +275,7 @@ struct sway_config { | |||
260 | list_t *pid_workspaces; | 275 | list_t *pid_workspaces; |
261 | list_t *output_configs; | 276 | list_t *output_configs; |
262 | list_t *input_configs; | 277 | list_t *input_configs; |
278 | list_t *seat_configs; | ||
263 | list_t *criteria; | 279 | list_t *criteria; |
264 | list_t *no_focus; | 280 | list_t *no_focus; |
265 | list_t *active_bar_modifiers; | 281 | list_t *active_bar_modifiers; |
@@ -358,9 +374,16 @@ struct cmd_results *check_security_config(); | |||
358 | int input_identifier_cmp(const void *item, const void *data); | 374 | int input_identifier_cmp(const void *item, const void *data); |
359 | struct input_config *new_input_config(const char* identifier); | 375 | struct input_config *new_input_config(const char* identifier); |
360 | void merge_input_config(struct input_config *dst, struct input_config *src); | 376 | void merge_input_config(struct input_config *dst, struct input_config *src); |
361 | void apply_input_config(struct input_config *ic, struct libinput_device *dev); | ||
362 | void free_input_config(struct input_config *ic); | 377 | void free_input_config(struct input_config *ic); |
363 | 378 | ||
379 | int seat_name_cmp(const void *item, const void *data); | ||
380 | struct seat_config *new_seat_config(const char* name); | ||
381 | void merge_seat_config(struct seat_config *dst, struct seat_config *src); | ||
382 | void free_seat_config(struct seat_config *ic); | ||
383 | struct seat_attachment_config *seat_attachment_config_new(); | ||
384 | struct seat_attachment_config *seat_config_get_attachment( | ||
385 | struct seat_config *seat_config, char *identifier); | ||
386 | |||
364 | int output_name_cmp(const void *item, const void *data); | 387 | int output_name_cmp(const void *item, const void *data); |
365 | void merge_output_config(struct output_config *dst, struct output_config *src); | 388 | void merge_output_config(struct output_config *dst, struct output_config *src); |
366 | /** Sets up a WLC output handle based on a given output_config. | 389 | /** Sets up a WLC output handle based on a given output_config. |