implement configure requests, adapt testcase

testcase does not pass 100% due to clients not being reparented correctly yet.
This commit is contained in:
Michael Stapelberg
2010-11-12 21:41:10 +01:00
parent 0723876429
commit 8f7bd538d8
11 changed files with 108 additions and 115 deletions

View File

@ -51,12 +51,8 @@ void render_con(Con *con) {
/* depending on the border style, the rect of the child window
* needs to be smaller */
Rect *inset = &(con->window_rect);
if (con->border_style == BS_NORMAL)
*inset = (Rect){2, 0, con->rect.width - (2 * 2), con->rect.height - 2};
else if (con->border_style == BS_1PIXEL)
*inset = (Rect){1, 1, con->rect.width - 2, con->rect.height - 1};
else *inset = (Rect){0, 0, con->rect.width, con->rect.height};
*inset = (Rect){0, 0, con->rect.width, con->rect.height};
*inset = rect_add(*inset, con_border_style_rect(con));
/* Obey the aspect ratio, if any */
if (con->proportional_height != 0 &&