mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
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
This commit is contained in:
parent
187306640b
commit
1fd2c6ba49
15 changed files with 412 additions and 321 deletions
|
|
@ -84,7 +84,7 @@ struct swaybar_config *init_config(void) {
|
|||
return config;
|
||||
}
|
||||
|
||||
static void free_binding(struct swaybar_binding *binding) {
|
||||
void free_binding(struct swaybar_binding *binding) {
|
||||
if (!binding) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -93,7 +93,7 @@ static void free_binding(struct swaybar_binding *binding) {
|
|||
}
|
||||
|
||||
#if HAVE_TRAY
|
||||
static void free_tray_binding(struct tray_binding *binding) {
|
||||
void free_tray_binding(struct tray_binding *binding) {
|
||||
if (!binding) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue