diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-05-19 18:25:36 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-05-19 18:25:36 -0400 |
| commit | 8e0656a888284489317ce689aa95018ccdf8e910 (patch) | |
| tree | f5af1cbf8fcf127fdf602c5392003521dfe165d9 | |
| parent | 880c6f8babdfc5735f176723e7273ef0cfdc2a24 (diff) | |
| parent | 1b52c92c6e45e75e244e445c447fcf4ff18bc556 (diff) | |
Merge pull request #2006 from kupospelov/fix-title-pixel-bar
Fix pixel bar below title
| -rw-r--r-- | sway/desktop/output.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 94562052..ebb3ddaa 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -383,21 +383,21 @@ static void render_container_simple_border_normal(struct sway_output *output, scale_box(&box, output_scale); render_rect(output->wlr_output, output_damage, &box, color); + // Setting these makes marks and title easier + size_t inner_x = con->x + view->border_thickness * view->border_left; + size_t inner_width = con->width - view->border_thickness * view->border_left + - view->border_thickness * view->border_right; + // Single pixel bar below title memcpy(&color, colors->border, sizeof(float) * 4); color[3] *= con->alpha; - box.x = con->x + view->border_thickness; + box.x = inner_x; box.y = view->y - 1; - box.width = con->width - view->border_thickness * 2; + box.width = inner_width; box.height = 1; scale_box(&box, output_scale); render_rect(output->wlr_output, output_damage, &box, color); - // Setting these makes marks and title easier - size_t inner_x = con->x + view->border_thickness * view->border_left; - size_t inner_width = con->width - view->border_thickness * view->border_left - - view->border_thickness * view->border_right; - // Marks size_t marks_width = 0; if (config->show_marks && marks_texture) { |
