aboutsummaryrefslogtreecommitdiff
path: root/include/swaybar/bar.h
diff options
context:
space:
mode:
authorIan Fan <ianfan0@gmail.com>2018-09-30 15:09:09 +0100
committerIan Fan <ianfan0@gmail.com>2018-10-14 13:33:12 +0100
commitd0b54e932b59baa71b54d842b249400db74ce79b (patch)
treedc8a6aa3920b8d54e24d2ab97dab2c7d1dbbe4b8 /include/swaybar/bar.h
parent1f90f92f45580adfbe4ce363181331c182f3f341 (diff)
swaybar: save id upon startup
This adds an id property to the bar, which will be used to filter barconfig_update events
Diffstat (limited to 'include/swaybar/bar.h')
-rw-r--r--include/swaybar/bar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h
index de234111..d29db31e 100644
--- a/include/swaybar/bar.h
+++ b/include/swaybar/bar.h
@@ -46,6 +46,8 @@ struct swaybar_hotspot {
};
struct swaybar {
+ char *id;
+
struct wl_display *display;
struct wl_compositor *compositor;
struct zwlr_layer_shell_v1 *layer_shell;
@@ -96,7 +98,7 @@ struct swaybar_workspace {
bool urgent;
};
-bool bar_setup(struct swaybar *bar, const char *socket_path, const char *bar_id);
+bool bar_setup(struct swaybar *bar, const char *socket_path);
void bar_run(struct swaybar *bar);
void bar_teardown(struct swaybar *bar);