* updated in X11.
*
*/
-void render_con(Con *con) {
+void render_con(Con *con, bool render_fullscreen) {
printf("currently rendering node %p / %s / layout %d\n",
con, con->name, con->layout);
int children = con_num_children(con);
* needs to be smaller */
Rect *inset = &(con->window_rect);
*inset = (Rect){0, 0, con->rect.width, con->rect.height};
- *inset = rect_add(*inset, con_border_style_rect(con));
+ if (!render_fullscreen)
+ *inset = rect_add(*inset, con_border_style_rect(con));
/* Obey x11 border */
inset->width -= (2 * con->border_width);
LOG("got fs node: %p\n", fullscreen);
fullscreen->rect = rect;
x_raise_con(fullscreen);
- render_con(fullscreen);
+ render_con(fullscreen, true);
return;
}
child->rect.x, child->rect.y, child->rect.width, child->rect.height);
printf("x now %d, y now %d\n", x, y);
x_raise_con(child);
- render_con(child);
+ render_con(child, false);
i++;
}
x_raise_con(foc);
/* by rendering the stacked container again, we handle the case
* that we have a non-leaf-container inside the stack. */
- render_con(foc);
+ render_con(foc, false);
}
}
LOG("render floating:\n");
LOG("floating child at (%d,%d) with %d x %d\n", child->rect.x, child->rect.y, child->rect.width, child->rect.height);
x_raise_con(child);
- render_con(child);
+ render_con(child, false);
}
printf("-- level up\n");
Con *output;
TAILQ_FOREACH(output, &(croot->nodes_head), nodes) {
printf("output %p / %s\n", output, output->name);
- render_con(output);
+ render_con(output, false);
}
x_push_changes(croot);
printf("-- END RENDERING --\n");