mirror of
https://github.com/swaywm/sway.git
synced 2025-01-02 18:37:55 +01:00
Fix y and height for a hidden top normal border
This commit is contained in:
parent
34b864fb17
commit
3488fbc859
1 changed files with 2 additions and 4 deletions
|
@ -152,14 +152,12 @@ void view_autoconfigure(struct sway_view *view) {
|
||||||
case B_NORMAL:
|
case B_NORMAL:
|
||||||
// Height is: border + title height + border + view height + border
|
// Height is: border + title height + border + view height + border
|
||||||
x = view->swayc->x + view->border_thickness * view->border_left;
|
x = view->swayc->x + view->border_thickness * view->border_left;
|
||||||
y = view->swayc->y + config->font_height
|
y = view->swayc->y + config->font_height + view->border_thickness * 2;
|
||||||
+ view->border_thickness * (view->border_top + 1);
|
|
||||||
width = view->swayc->width
|
width = view->swayc->width
|
||||||
- view->border_thickness * view->border_left
|
- view->border_thickness * view->border_left
|
||||||
- view->border_thickness * view->border_right;
|
- view->border_thickness * view->border_right;
|
||||||
height = view->swayc->height - config->font_height
|
height = view->swayc->height - config->font_height
|
||||||
- view->border_thickness * (view->border_top + 1)
|
- view->border_thickness * (2 + view->border_bottom);
|
||||||
- view->border_thickness * view->border_bottom;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue