From ede27eabc53dc926aa1932c2a58c06def1000f86 Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Fri, 18 Dec 2015 17:43:03 +0100 Subject: Reload swaybar/swaybg on config reload. This works by tracking the pids of the child processes in the related output container and terminating the processes and spawning new ones on a config reload. Should solve: #347 --- include/config.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/config.h') diff --git a/include/config.h b/include/config.h index 32562908..1f25a0cd 100644 --- a/include/config.h +++ b/include/config.h @@ -184,6 +184,8 @@ int sway_mouse_binding_cmp(const void *a, const void *b); int sway_mouse_binding_cmp_buttons(const void *a, const void *b); void free_sway_mouse_binding(struct sway_mouse_binding *smb); +void load_swaybars(swayc_t *output, int output_idx); + /** * Allocate and initialize default bar configuration. */ -- cgit v1.2.3 From 90ff36cab8657272b6727af69bab49dba463d6ba Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Fri, 18 Dec 2015 18:02:39 +0100 Subject: Terminate children when freeing output container --- include/config.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/config.h') diff --git a/include/config.h b/include/config.h index 1f25a0cd..b89ad553 100644 --- a/include/config.h +++ b/include/config.h @@ -185,6 +185,8 @@ int sway_mouse_binding_cmp_buttons(const void *a, const void *b); void free_sway_mouse_binding(struct sway_mouse_binding *smb); void load_swaybars(swayc_t *output, int output_idx); +void terminate_swaybars(list_t *pids); +void terminate_swaybg(pid_t pid); /** * Allocate and initialize default bar configuration. -- cgit v1.2.3