diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-09-30 15:09:09 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-09-30 15:09:09 +0100 |
| commit | c7f192993143b2b959578c11991f56df9fa62bfc (patch) | |
| tree | dc8a6aa3920b8d54e24d2ab97dab2c7d1dbbe4b8 /include/swaybar/bar.h | |
| parent | e9336dd9939a33b0511f2281d56802a0d76d8907 (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.h | 4 |
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); |
