diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-05-14 09:04:18 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-05-14 09:04:18 -0400 |
commit | 77b42ec8216ec785e3981617c5afbb16c1cd31d7 (patch) | |
tree | b8f5db6578b13653d9650a11ed22f9d2ad6250ce /sway/desktop/output.c | |
parent | 3488fbc85952c617c304e6e1b84015c9c6a30651 (diff) |
Always render top border for border normal
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 705e542a..577279ac 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -365,16 +365,14 @@ static void render_container_simple_border_normal(struct sway_output *output, render_rect(output->wlr_output, output_damage, &box, color); } - if (con->sway_view->border_top) { - // Single pixel bar above title - memcpy(&color, colors->border, sizeof(float) * 4); - color[3] *= con->alpha; - box.x = con->x; - box.y = con->y; - box.width = con->width; - box.height = 1; - render_rect(output->wlr_output, output_damage, &box, color); - } + // Single pixel bar above title + memcpy(&color, colors->border, sizeof(float) * 4); + color[3] *= con->alpha; + box.x = con->x; + box.y = con->y; + box.width = con->width; + box.height = 1; + render_rect(output->wlr_output, output_damage, &box, color); // Single pixel bar below title memcpy(&color, colors->border, sizeof(float) * 4); @@ -390,11 +388,11 @@ static void render_container_simple_border_normal(struct sway_output *output, color[3] *= con->alpha; box.x = con->x + con->sway_view->border_thickness * con->sway_view->border_left; - box.y = con->y + con->sway_view->border_top; + box.y = con->y + 1; box.width = con->width - con->sway_view->border_thickness * con->sway_view->border_left - con->sway_view->border_thickness * con->sway_view->border_right; - box.height = con->sway_view->y - con->y - (con->sway_view->border_top + 1); + box.height = con->sway_view->y - con->y - 2; render_rect(output->wlr_output, output_damage, &box, color); // Title text |