diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 4 | ||||
-rw-r--r-- | include/container.h | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 7e4fda7e..e6fc9f28 100644 --- a/include/config.h +++ b/include/config.h | |||
@@ -185,6 +185,10 @@ int sway_mouse_binding_cmp(const void *a, const void *b); | |||
185 | int sway_mouse_binding_cmp_buttons(const void *a, const void *b); | 185 | int sway_mouse_binding_cmp_buttons(const void *a, const void *b); |
186 | void free_sway_mouse_binding(struct sway_mouse_binding *smb); | 186 | void free_sway_mouse_binding(struct sway_mouse_binding *smb); |
187 | 187 | ||
188 | void load_swaybars(swayc_t *output, int output_idx); | ||
189 | void terminate_swaybars(list_t *pids); | ||
190 | void terminate_swaybg(pid_t pid); | ||
191 | |||
188 | /** | 192 | /** |
189 | * Allocate and initialize default bar configuration. | 193 | * Allocate and initialize default bar configuration. |
190 | */ | 194 | */ |
diff --git a/include/container.h b/include/container.h index 9a67a689..d76160de 100644 --- a/include/container.h +++ b/include/container.h | |||
@@ -1,5 +1,6 @@ | |||
1 | #ifndef _SWAY_CONTAINER_H | 1 | #ifndef _SWAY_CONTAINER_H |
2 | #define _SWAY_CONTAINER_H | 2 | #define _SWAY_CONTAINER_H |
3 | #include <sys/types.h> | ||
3 | #include <wlc/wlc.h> | 4 | #include <wlc/wlc.h> |
4 | typedef struct sway_container swayc_t; | 5 | typedef struct sway_container swayc_t; |
5 | 6 | ||
@@ -81,6 +82,11 @@ struct sway_container { | |||
81 | char *class; | 82 | char *class; |
82 | char *app_id; | 83 | char *app_id; |
83 | 84 | ||
85 | // Used by output containers to keep track of swaybar/swaybg child | ||
86 | // processes. | ||
87 | list_t *bar_pids; | ||
88 | pid_t bg_pid; | ||
89 | |||
84 | int gaps; | 90 | int gaps; |
85 | 91 | ||
86 | list_t *children; | 92 | list_t *children; |