diff options
author | 2015-12-16 19:29:47 -0500 | |
---|---|---|
committer | 2015-12-16 19:29:47 -0500 | |
commit | 60c204a09b3b4ae999eca5e844858a0f34135723 (patch) | |
tree | eec810a1c29df53e220ccc3c7e0c298311fd8d76 /sway/commands.c | |
parent | Bring unmanaged windows to front on output arrange (diff) | |
download | sway-60c204a09b3b4ae999eca5e844858a0f34135723.tar.gz sway-60c204a09b3b4ae999eca5e844858a0f34135723.tar.zst sway-60c204a09b3b4ae999eca5e844858a0f34135723.zip |
Invoke swaybar when an output matches a bar config
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 4e9630ef..b40cdb6a 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -1785,6 +1785,10 @@ static struct cmd_results *bar_cmd_output(int argc, char **argv) { | |||
1785 | 1785 | ||
1786 | const char *output = argv[0]; | 1786 | const char *output = argv[0]; |
1787 | list_t *outputs = config->current_bar->outputs; | 1787 | list_t *outputs = config->current_bar->outputs; |
1788 | if (!outputs) { | ||
1789 | outputs = create_list(); | ||
1790 | config->current_bar->outputs = outputs; | ||
1791 | } | ||
1788 | 1792 | ||
1789 | int i; | 1793 | int i; |
1790 | int add_output = 1; | 1794 | int add_output = 1; |