cmd_bar improvements (#4014)

- Split cmd_bar into 2 functions, improving errors and reducing strcmps
- Only update barconfig when something has changed
- Only update barconfig for the specific bar that has changed

Fixes #3958
This commit is contained in:
Orestis Floros
2020-05-07 09:22:03 +02:00
committed by GitHub
parent 142b3fa945
commit f63a4bef54
6 changed files with 55 additions and 84 deletions

View File

@ -425,9 +425,3 @@ bool load_configuration(const char *override_configfile, config_load_t load_type
*
*/
void ungrab_all_keys(xcb_connection_t *conn);
/**
* Sends the current bar configuration as an event to all barconfig_update listeners.
*
*/
void update_barconfig(void);