mirror of
https://github.com/swaywm/sway.git
synced 2026-04-30 06:46:24 -04:00
remove binding mode from sway side. switch from strings to enums on swaybar side
This commit is contained in:
parent
b23fd02fb6
commit
0dc55dda6a
6 changed files with 61 additions and 24 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue