diff options
Diffstat (limited to 'include/sway/config.h')
-rw-r--r-- | include/sway/config.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index b53c1f1f..eab48aed 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -93,6 +93,7 @@ struct input_config { | |||
93 | 93 | ||
94 | int accel_profile; | 94 | int accel_profile; |
95 | int click_method; | 95 | int click_method; |
96 | int drag; | ||
96 | int drag_lock; | 97 | int drag_lock; |
97 | int dwt; | 98 | int dwt; |
98 | int left_handed; | 99 | int left_handed; |
@@ -167,13 +168,14 @@ struct output_config { | |||
167 | }; | 168 | }; |
168 | 169 | ||
169 | /** | 170 | /** |
170 | * Maps a workspace name to an output name. | 171 | * Stores configuration for a workspace, regardless of whether the workspace |
171 | * | 172 | * exists. |
172 | * Set via `workspace <x> output <y>` | ||
173 | */ | 173 | */ |
174 | struct workspace_output { | 174 | struct workspace_config { |
175 | char *output; | ||
176 | char *workspace; | 175 | char *workspace; |
176 | char *output; | ||
177 | int gaps_inner; | ||
178 | int gaps_outer; | ||
177 | }; | 179 | }; |
178 | 180 | ||
179 | struct bar_config { | 181 | struct bar_config { |
@@ -327,7 +329,7 @@ struct sway_config { | |||
327 | list_t *modes; | 329 | list_t *modes; |
328 | list_t *bars; | 330 | list_t *bars; |
329 | list_t *cmd_queue; | 331 | list_t *cmd_queue; |
330 | list_t *workspace_outputs; | 332 | list_t *workspace_configs; |
331 | list_t *output_configs; | 333 | list_t *output_configs; |
332 | list_t *input_configs; | 334 | list_t *input_configs; |
333 | list_t *seat_configs; | 335 | list_t *seat_configs; |
@@ -450,20 +452,16 @@ void free_sway_variable(struct sway_variable *var); | |||
450 | */ | 452 | */ |
451 | char *do_var_replacement(char *str); | 453 | char *do_var_replacement(char *str); |
452 | 454 | ||
453 | struct cmd_results *check_security_config(); | ||
454 | |||
455 | int input_identifier_cmp(const void *item, const void *data); | 455 | int input_identifier_cmp(const void *item, const void *data); |
456 | 456 | ||
457 | struct input_config *new_input_config(const char* identifier); | 457 | struct input_config *new_input_config(const char* identifier); |
458 | 458 | ||
459 | void merge_input_config(struct input_config *dst, struct input_config *src); | 459 | void merge_input_config(struct input_config *dst, struct input_config *src); |
460 | 460 | ||
461 | struct input_config *copy_input_config(struct input_config *ic); | 461 | struct input_config *store_input_config(struct input_config *ic); |
462 | 462 | ||
463 | void free_input_config(struct input_config *ic); | 463 | void free_input_config(struct input_config *ic); |
464 | 464 | ||
465 | void apply_input_config(struct input_config *input); | ||
466 | |||
467 | int seat_name_cmp(const void *item, const void *data); | 465 | int seat_name_cmp(const void *item, const void *data); |
468 | 466 | ||
469 | struct seat_config *new_seat_config(const char* name); | 467 | struct seat_config *new_seat_config(const char* name); |
@@ -474,7 +472,7 @@ struct seat_config *copy_seat_config(struct seat_config *seat); | |||
474 | 472 | ||
475 | void free_seat_config(struct seat_config *ic); | 473 | void free_seat_config(struct seat_config *ic); |
476 | 474 | ||
477 | struct seat_attachment_config *seat_attachment_config_new(); | 475 | struct seat_attachment_config *seat_attachment_config_new(void); |
478 | 476 | ||
479 | struct seat_attachment_config *seat_config_get_attachment( | 477 | struct seat_attachment_config *seat_config_get_attachment( |
480 | struct seat_config *seat_config, char *identifier); | 478 | struct seat_config *seat_config, char *identifier); |
@@ -512,9 +510,7 @@ void free_sway_binding(struct sway_binding *sb); | |||
512 | 510 | ||
513 | void seat_execute_command(struct sway_seat *seat, struct sway_binding *binding); | 511 | void seat_execute_command(struct sway_seat *seat, struct sway_binding *binding); |
514 | 512 | ||
515 | void load_swaybars(); | 513 | void load_swaybars(void); |
516 | |||
517 | void invoke_swaybar(struct bar_config *bar); | ||
518 | 514 | ||
519 | void terminate_swaybg(pid_t pid); | 515 | void terminate_swaybg(pid_t pid); |
520 | 516 | ||
@@ -522,6 +518,8 @@ struct bar_config *default_bar_config(void); | |||
522 | 518 | ||
523 | void free_bar_config(struct bar_config *bar); | 519 | void free_bar_config(struct bar_config *bar); |
524 | 520 | ||
521 | void free_workspace_config(struct workspace_config *wsc); | ||
522 | |||
525 | /** | 523 | /** |
526 | * Updates the value of config->font_height based on the max title height | 524 | * Updates the value of config->font_height based on the max title height |
527 | * reported by each container. If recalculate is true, the containers will | 525 | * reported by each container. If recalculate is true, the containers will |