remove binding mode from sway side. switch from strings to enums on swaybar side

This commit is contained in:
Calvin Kosmatka 2017-04-16 23:34:27 -05:00
parent b23fd02fb6
commit 0dc55dda6a
6 changed files with 61 additions and 24 deletions

View file

@ -288,7 +288,7 @@ void render(struct output *output, struct config *config, struct status_line *li
cairo_restore(cairo);
// Could also be done by always rendering then conditionally clearing and drawing alpha
// That may be preferable down the line
if ((!strcmp(config->display_mode, "hide")) == 0 || strcmp(config->hidden_state, "show") == 0) {
if ((!config->display_mode == MODE_HIDE) || config->hidden_state == BAR_SHOW) {
cairo_set_operator(cairo, CAIRO_OPERATOR_SOURCE);