mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 00:16:22 +01:00
Remove unused variable
This commit is contained in:
parent
7e5c2d7afa
commit
c1a5f61622
1 changed files with 0 additions and 3 deletions
|
@ -327,7 +327,6 @@ static void predict_status_block_pos(cairo_t *cairo,
|
||||||
width = block->min_width;
|
width = block->min_width;
|
||||||
}
|
}
|
||||||
|
|
||||||
double block_width = width;
|
|
||||||
uint32_t ideal_height = text_height + ws_vertical_padding * 2;
|
uint32_t ideal_height = text_height + ws_vertical_padding * 2;
|
||||||
uint32_t ideal_surface_height = ideal_height / output->scale;
|
uint32_t ideal_surface_height = ideal_height / output->scale;
|
||||||
if (!output->bar->config->height &&
|
if (!output->bar->config->height &&
|
||||||
|
@ -338,11 +337,9 @@ static void predict_status_block_pos(cairo_t *cairo,
|
||||||
*x -= width;
|
*x -= width;
|
||||||
if ((block->border || block->urgent) && block->border_left > 0) {
|
if ((block->border || block->urgent) && block->border_left > 0) {
|
||||||
*x -= (block->border_left * output->scale + margin);
|
*x -= (block->border_left * output->scale + margin);
|
||||||
block_width += block->border_left * output->scale + margin;
|
|
||||||
}
|
}
|
||||||
if ((block->border || block->urgent) && block->border_right > 0) {
|
if ((block->border || block->urgent) && block->border_right > 0) {
|
||||||
*x -= (block->border_right * output->scale + margin);
|
*x -= (block->border_right * output->scale + margin);
|
||||||
block_width += block->border_right * output->scale + margin;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int sep_width, sep_height;
|
int sep_width, sep_height;
|
||||||
|
|
Loading…
Reference in a new issue