diff options
Diffstat (limited to 'include/sway/config.h')
-rw-r--r-- | include/sway/config.h | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index f9ab6778..dbcfc91e 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -12,6 +12,8 @@ | |||
12 | #include "container.h" | 12 | #include "container.h" |
13 | #include "wlr-layer-shell-unstable-v1-protocol.h" | 13 | #include "wlr-layer-shell-unstable-v1-protocol.h" |
14 | 14 | ||
15 | // TODO: Refactor this shit | ||
16 | |||
15 | /** | 17 | /** |
16 | * Describes a variable created via the `set` command. | 18 | * Describes a variable created via the `set` command. |
17 | */ | 19 | */ |
@@ -407,11 +409,6 @@ void merge_output_config(struct output_config *dst, struct output_config *src); | |||
407 | void apply_output_config(struct output_config *oc, swayc_t *output); | 409 | void apply_output_config(struct output_config *oc, swayc_t *output); |
408 | void free_output_config(struct output_config *oc); | 410 | void free_output_config(struct output_config *oc); |
409 | 411 | ||
410 | /** | ||
411 | * Updates the list of active bar modifiers | ||
412 | */ | ||
413 | void update_active_bar_modifiers(void); | ||
414 | |||
415 | int workspace_output_cmp_workspace(const void *a, const void *b); | 412 | int workspace_output_cmp_workspace(const void *a, const void *b); |
416 | 413 | ||
417 | int sway_binding_cmp(const void *a, const void *b); | 414 | int sway_binding_cmp(const void *a, const void *b); |
@@ -420,27 +417,16 @@ int sway_binding_cmp_keys(const void *a, const void *b); | |||
420 | void free_sway_binding(struct sway_binding *sb); | 417 | void free_sway_binding(struct sway_binding *sb); |
421 | struct sway_binding *sway_binding_dup(struct sway_binding *sb); | 418 | struct sway_binding *sway_binding_dup(struct sway_binding *sb); |
422 | 419 | ||
423 | int sway_mouse_binding_cmp(const void *a, const void *b); | 420 | /* Bar stuff */ |
424 | int sway_mouse_binding_cmp_qsort(const void *a, const void *b); | ||
425 | int sway_mouse_binding_cmp_buttons(const void *a, const void *b); | ||
426 | void free_sway_mouse_binding(struct sway_mouse_binding *smb); | ||
427 | |||
428 | void load_swaybars(); | 421 | void load_swaybars(); |
429 | void terminate_swaybg(pid_t pid); | 422 | void terminate_swaybg(pid_t pid); |
430 | |||
431 | /** | ||
432 | * Allocate and initialize default bar configuration. | ||
433 | */ | ||
434 | struct bar_config *default_bar_config(void); | 423 | struct bar_config *default_bar_config(void); |
424 | void free_bar_config(struct bar_config *bar); | ||
435 | 425 | ||
436 | /** | 426 | /* Global config singleton. */ |
437 | * Global config singleton. | ||
438 | */ | ||
439 | extern struct sway_config *config; | 427 | extern struct sway_config *config; |
440 | 428 | ||
441 | /** | 429 | /* Config file currently being read */ |
442 | * Config file currently being read. | ||
443 | */ | ||
444 | extern const char *current_config_path; | 430 | extern const char *current_config_path; |
445 | 431 | ||
446 | #endif | 432 | #endif |