diff options
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/render.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/swaybar/render.c b/swaybar/render.c index e17c13a8..36df2d86 100644 --- a/swaybar/render.c +++ b/swaybar/render.c | |||
@@ -327,7 +327,6 @@ static void predict_status_block_pos(cairo_t *cairo, | |||
327 | width = block->min_width; | 327 | width = block->min_width; |
328 | } | 328 | } |
329 | 329 | ||
330 | double block_width = width; | ||
331 | uint32_t ideal_height = text_height + ws_vertical_padding * 2; | 330 | uint32_t ideal_height = text_height + ws_vertical_padding * 2; |
332 | uint32_t ideal_surface_height = ideal_height / output->scale; | 331 | uint32_t ideal_surface_height = ideal_height / output->scale; |
333 | if (!output->bar->config->height && | 332 | if (!output->bar->config->height && |
@@ -338,11 +337,9 @@ static void predict_status_block_pos(cairo_t *cairo, | |||
338 | *x -= width; | 337 | *x -= width; |
339 | if ((block->border || block->urgent) && block->border_left > 0) { | 338 | if ((block->border || block->urgent) && block->border_left > 0) { |
340 | *x -= (block->border_left * output->scale + margin); | 339 | *x -= (block->border_left * output->scale + margin); |
341 | block_width += block->border_left * output->scale + margin; | ||
342 | } | 340 | } |
343 | if ((block->border || block->urgent) && block->border_right > 0) { | 341 | if ((block->border || block->urgent) && block->border_right > 0) { |
344 | *x -= (block->border_right * output->scale + margin); | 342 | *x -= (block->border_right * output->scale + margin); |
345 | block_width += block->border_right * output->scale + margin; | ||
346 | } | 343 | } |
347 | 344 | ||
348 | int sep_width, sep_height; | 345 | int sep_width, sep_height; |