mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
Make sway spawn only one bar per bar config
This commit is contained in:
parent
6d57f03028
commit
bad4e22f3b
5 changed files with 31 additions and 54 deletions
|
|
@ -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);
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue