aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-05-14 01:46:53 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-05-14 01:46:53 -0400
commit3488fbc85952c617c304e6e1b84015c9c6a30651 (patch)
tree772e41121a329e2e99c0ac30510d66002d229ce3
parentMerge branch 'master' into fix-1975 (diff)
downloadsway-3488fbc85952c617c304e6e1b84015c9c6a30651.tar.gz
sway-3488fbc85952c617c304e6e1b84015c9c6a30651.tar.zst
sway-3488fbc85952c617c304e6e1b84015c9c6a30651.zip
Fix y and height for a hidden top normal border
-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) {
152 case B_NORMAL: 152 case B_NORMAL:
153 // Height is: border + title height + border + view height + border 153 // Height is: border + title height + border + view height + border
154 x = view->swayc->x + view->border_thickness * view->border_left; 154 x = view->swayc->x + view->border_thickness * view->border_left;
155 y = view->swayc->y + config->font_height 155 y = view->swayc->y + config->font_height + view->border_thickness * 2;
156 + view->border_thickness * (view->border_top + 1);
157 width = view->swayc->width 156 width = view->swayc->width
158 - view->border_thickness * view->border_left 157 - view->border_thickness * view->border_left
159 - view->border_thickness * view->border_right; 158 - view->border_thickness * view->border_right;
160 height = view->swayc->height - config->font_height 159 height = view->swayc->height - config->font_height
161 - view->border_thickness * (view->border_top + 1) 160 - view->border_thickness * (2 + view->border_bottom);
162 - view->border_thickness * view->border_bottom;
163 break; 161 break;
164 } 162 }
165 163