aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2018-05-14 01:46:53 -0400
committerBrian Ashworth <bosrsf04@gmail.com>2018-05-14 01:46:53 -0400
commit3488fbc85952c617c304e6e1b84015c9c6a30651 (patch)
tree772e41121a329e2e99c0ac30510d66002d229ce3 /sway/tree
parent34b864fb1752fde2528db6aa86d53c23412a8f43 (diff)
downloadsway-3488fbc85952c617c304e6e1b84015c9c6a30651.tar.xz
Fix y and height for a hidden top normal border
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/view.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index a485e902..392cd59d 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -152,14 +152,12 @@ void view_autoconfigure(struct sway_view *view) {
case B_NORMAL:
// Height is: border + title height + border + view height + border
x = view->swayc->x + view->border_thickness * view->border_left;
- y = view->swayc->y + config->font_height
- + view->border_thickness * (view->border_top + 1);
+ y = view->swayc->y + config->font_height + view->border_thickness * 2;
width = view->swayc->width
- view->border_thickness * view->border_left
- view->border_thickness * view->border_right;
height = view->swayc->height - config->font_height
- - view->border_thickness * (view->border_top + 1)
- - view->border_thickness * view->border_bottom;
+ - view->border_thickness * (2 + view->border_bottom);
break;
}