Only destroy swaybar surface via ipc when needed

This commit is contained in:
Bill Doyle 2020-02-26 23:36:14 -05:00
parent 5ed01c861a
commit 345c0a48cc
No known key found for this signature in database
GPG key ID: 50CCC70C5AD25E4F

View file

@ -528,8 +528,10 @@ static bool handle_barconfig_update(struct swaybar *bar, const char *payload,
ipc_get_workspaces(bar);
}
bool moving_layer = strcmp(oldcfg->mode, newcfg->mode) != 0;
free_config(oldcfg);
determine_bar_visibility(bar, true);
determine_bar_visibility(bar, moving_layer);
return true;
}