mirror of
https://github.com/swaywm/sway.git
synced 2025-11-12 13:29:56 -05:00
Render titles
This commit is contained in:
parent
f3d0885524
commit
b667298a0a
11 changed files with 155 additions and 19 deletions
|
|
@ -103,11 +103,12 @@ void view_autoconfigure(struct sway_view *view) {
|
|||
height = view->swayc->height - view->border_thickness * 2;
|
||||
break;
|
||||
case B_NORMAL:
|
||||
// TODO: Size the title bar by checking the font
|
||||
// Height is: border + title height + border + view height + border
|
||||
x = view->swayc->x + view->border_thickness;
|
||||
y = view->swayc->y + 20;
|
||||
y = view->swayc->y + config->font_height + view->border_thickness * 2;
|
||||
width = view->swayc->width - view->border_thickness * 2;
|
||||
height = view->swayc->height - view->border_thickness - 20;
|
||||
height = view->swayc->height - config->font_height
|
||||
- view->border_thickness * 3;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue