diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-09-02 21:41:11 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-09-04 16:48:50 -1000 |
commit | 1fd2c6ba498e61f4fe823bf552f9d2fce8612de4 (patch) | |
tree | 8e2d9adab3451f1f05c76340d466a442c840e558 /include/swaybar/bar.h | |
parent | seatop_default: only focus container on press (diff) | |
download | sway-1fd2c6ba498e61f4fe823bf552f9d2fce8612de4.tar.gz sway-1fd2c6ba498e61f4fe823bf552f9d2fce8612de4.tar.zst sway-1fd2c6ba498e61f4fe823bf552f9d2fce8612de4.zip |
swaybar: complete barconfig_update event handling
This adds complete support for the barconfig_update ipc event. This also
changes the bar command and subcommand handlers to correctly emit the
event. This makes it so all bar subcommands other than id and
swaybar_command are dynamically changeable at runtime. sway-bar.5 has
been updated accordingly
Diffstat (limited to 'include/swaybar/bar.h')
-rw-r--r-- | include/swaybar/bar.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index 10984ab0..545a66a8 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h | |||
@@ -41,6 +41,7 @@ struct swaybar { | |||
41 | int ipc_socketfd; | 41 | int ipc_socketfd; |
42 | 42 | ||
43 | struct wl_list outputs; // swaybar_output::link | 43 | struct wl_list outputs; // swaybar_output::link |
44 | struct wl_list unused_outputs; // swaybar_output::link | ||
44 | struct wl_list seats; // swaybar_seat::link | 45 | struct wl_list seats; // swaybar_seat::link |
45 | 46 | ||
46 | #if HAVE_TRAY | 47 | #if HAVE_TRAY |
@@ -109,4 +110,8 @@ void set_bar_dirty(struct swaybar *bar); | |||
109 | bool determine_bar_visibility(struct swaybar *bar, bool moving_layer); | 110 | bool determine_bar_visibility(struct swaybar *bar, bool moving_layer); |
110 | void free_workspaces(struct wl_list *list); | 111 | void free_workspaces(struct wl_list *list); |
111 | 112 | ||
113 | void status_in(int fd, short mask, void *data); | ||
114 | |||
115 | void destroy_layer_surface(struct swaybar_output *output); | ||
116 | |||
112 | #endif | 117 | #endif |