aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-02-23 14:25:09 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-02-27 22:12:35 +0100
commitbad4e22f3be658f8688f308e54a48b65c071a952 (patch)
treed4cbcd353d981d8fb1e0bb7eb4b78dc3aea023d8 /include
parent6d57f03028b4b32b4377d869be8de9a7e6aa55ee (diff)
downloadsway-bad4e22f3be658f8688f308e54a48b65c071a952.tar.xz
Make sway spawn only one bar per bar config
Diffstat (limited to 'include')
-rw-r--r--include/config.h4
-rw-r--r--include/container.h4
2 files changed, 3 insertions, 5 deletions
diff --git a/include/config.h b/include/config.h
index 655d0a9c..0b19580c 100644
--- a/include/config.h
+++ b/include/config.h
@@ -125,6 +125,7 @@ struct bar_config {
bool strip_workspace_numbers;
bool binding_mode_indicator;
bool verbose;
+ pid_t pid;
struct {
char background[10];
char statusline[10];
@@ -226,8 +227,7 @@ int sway_mouse_binding_cmp_qsort(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);
-void terminate_swaybars(list_t *pids);
+void load_swaybars(swayc_t *output);
void terminate_swaybg(pid_t pid);
/**
diff --git a/include/container.h b/include/container.h
index d5126e74..a96beab9 100644
--- a/include/container.h
+++ b/include/container.h
@@ -82,9 +82,7 @@ struct sway_container {
char *class;
char *app_id;
- // Used by output containers to keep track of swaybar/swaybg child
- // processes.
- list_t *bar_pids;
+ // Used by output containers to keep track of swaybg child processes.
pid_t bg_pid;
int gaps;