aboutsummaryrefslogtreecommitdiff
path: root/swaybar/ipc.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-25 11:00:56 +0200
committerGitHub <noreply@github.com>2018-04-25 11:00:56 +0200
commitc54097428a8f36e456d203d986d76702bd339066 (patch)
treeec248905f4c73d8f52c3e2c08ce26decbda2d704 /swaybar/ipc.c
parentdfc26c664f8c1b007f15ff24a3055774af200c69 (diff)
parent75674295504af9118d2af3c8677d8e1e84e85e77 (diff)
Merge branch 'master' into criteria-commands
Diffstat (limited to 'swaybar/ipc.c')
-rw-r--r--swaybar/ipc.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/swaybar/ipc.c b/swaybar/ipc.c
index ed5d9a31..959fa095 100644
--- a/swaybar/ipc.c
+++ b/swaybar/ipc.c
@@ -216,15 +216,6 @@ static void ipc_parse_config(
json_object_put(bar_config);
}
-static void free_workspaces(struct wl_list *list) {
- struct swaybar_workspace *ws, *tmp;
- wl_list_for_each_safe(ws, tmp, list, link) {
- wl_list_remove(&ws->link);
- free(ws->name);
- free(ws);
- }
-}
-
void ipc_get_workspaces(struct swaybar *bar) {
bar->focused_output = NULL;
struct swaybar_output *output;
@@ -290,8 +281,8 @@ static void ipc_get_outputs(struct swaybar *bar) {
continue;
}
if (bar->config->all_outputs) {
- struct config_output *coutput = calloc(
- 1, sizeof(struct config_output));
+ struct config_output *coutput =
+ calloc(1, sizeof(struct config_output));
coutput->name = strdup(name);
coutput->index = i;
wl_list_insert(&bar->config->outputs, &coutput->link);