From 312d009f656e86401cda1c6198b929e4cbd85d2f Mon Sep 17 00:00:00 2001 From: Ian Fan Date: Mon, 24 Sep 2018 18:42:25 +0100 Subject: swaybar: fail if bar id is invalid --- include/swaybar/bar.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include/swaybar/bar.h') diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index 29e96159..20a51809 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h @@ -95,9 +95,7 @@ struct swaybar_workspace { bool urgent; }; -void bar_setup(struct swaybar *bar, - const char *socket_path, - const char *bar_id); +bool bar_setup(struct swaybar *bar, const char *socket_path, const char *bar_id); void bar_run(struct swaybar *bar); void bar_teardown(struct swaybar *bar); -- cgit v1.2.3-54-g00ecf From bcd2a8fe124ce6adb7d23ba0fa39287744947e29 Mon Sep 17 00:00:00 2001 From: Ian Fan Date: Mon, 24 Sep 2018 20:15:40 +0100 Subject: swaybar: remove unused focused_output property --- include/swaybar/bar.h | 1 - swaybar/ipc.c | 1 - 2 files changed, 2 deletions(-) (limited to 'include/swaybar/bar.h') diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index 20a51809..20992014 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h @@ -54,7 +54,6 @@ struct swaybar { struct wl_seat *seat; struct swaybar_config *config; - struct swaybar_output *focused_output; struct swaybar_pointer pointer; struct status_line *status; diff --git a/swaybar/ipc.c b/swaybar/ipc.c index 2b50528d..7c53a44f 100644 --- a/swaybar/ipc.c +++ b/swaybar/ipc.c @@ -237,7 +237,6 @@ static bool ipc_parse_config( } void ipc_get_workspaces(struct swaybar *bar) { - bar->focused_output = NULL; struct swaybar_output *output; wl_list_for_each(output, &bar->outputs, link) { free_workspaces(&output->workspaces); -- cgit v1.2.3-54-g00ecf