diff options
Diffstat (limited to 'swaybar/render.c')
-rw-r--r-- | swaybar/render.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/swaybar/render.c b/swaybar/render.c index 9ac0c766..f3ce6010 100644 --- a/swaybar/render.c +++ b/swaybar/render.c | |||
@@ -55,7 +55,7 @@ static void render_sharp_line(cairo_t *cairo, uint32_t color, double x, double y | |||
55 | } | 55 | } |
56 | } | 56 | } |
57 | 57 | ||
58 | static void render_block(struct window *window, struct swaybar_config *config, struct status_block *block, double *x, bool edge) { | 58 | static void render_block(struct window *window, struct config *config, struct status_block *block, double *x, bool edge) { |
59 | int width, height, sep_width; | 59 | int width, height, sep_width; |
60 | get_text_size(window, &width, &height, "%s", block->full_text); | 60 | get_text_size(window, &width, &height, "%s", block->full_text); |
61 | 61 | ||
@@ -203,7 +203,7 @@ static char *handle_workspace_number(bool strip_num, const char *ws_name) { | |||
203 | return strdup(ws_name); | 203 | return strdup(ws_name); |
204 | } | 204 | } |
205 | 205 | ||
206 | static void render_workspace_button(struct window *window, struct swaybar_config *config, struct workspace *ws, double *x) { | 206 | static void render_workspace_button(struct window *window, struct config *config, struct workspace *ws, double *x) { |
207 | // strip workspace numbers if required | 207 | // strip workspace numbers if required |
208 | char *name = handle_workspace_number(config->strip_workspace_numbers, ws->name); | 208 | char *name = handle_workspace_number(config->strip_workspace_numbers, ws->name); |
209 | 209 | ||
@@ -242,7 +242,7 @@ static void render_workspace_button(struct window *window, struct swaybar_config | |||
242 | free(name); | 242 | free(name); |
243 | } | 243 | } |
244 | 244 | ||
245 | static void render_binding_mode_indicator(struct window *window, struct swaybar_config *config, double pos) { | 245 | static void render_binding_mode_indicator(struct window *window, struct config *config, double pos) { |
246 | int width, height; | 246 | int width, height; |
247 | get_text_size(window, &width, &height, "%s", config->mode); | 247 | get_text_size(window, &width, &height, "%s", config->mode); |
248 | 248 | ||
@@ -264,7 +264,7 @@ static void render_binding_mode_indicator(struct window *window, struct swaybar_ | |||
264 | pango_printf(window, "%s", config->mode); | 264 | pango_printf(window, "%s", config->mode); |
265 | } | 265 | } |
266 | 266 | ||
267 | void render(struct output *output, struct swaybar_config *config, struct status_line *line) { | 267 | void render(struct output *output, struct config *config, struct status_line *line) { |
268 | int i; | 268 | int i; |
269 | 269 | ||
270 | struct window *window = output->window; | 270 | struct window *window = output->window; |