diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2015-12-18 17:43:03 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2015-12-18 17:43:03 +0100 |
| commit | 33d936be5ee50b71ccd30a2eb7075fb2a4d2b067 (patch) | |
| tree | 4d734e99a6163d846423c79a2d7ff04070018e78 /include/container.h | |
| parent | 9968d78df077a8639427024fd3157b5df81e1a43 (diff) | |
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
Diffstat (limited to 'include/container.h')
| -rw-r--r-- | include/container.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ #ifndef _SWAY_CONTAINER_H #define _SWAY_CONTAINER_H +#include <sys/types.h> #include <wlc/wlc.h> typedef struct sway_container swayc_t; @@ -81,6 +82,11 @@ struct sway_container { char *class; char *app_id; + // Used by output containers to keep track of swaybar/swaybg child + // processes. + list_t *bar_pids; + pid_t bg_pid; + int gaps; list_t *children; |
