Compare commits
2 Commits
master
...
austen-dev
Author | SHA1 | Date | |
---|---|---|---|
b26a0fcd99 | |||
2ee1a6d285 |
11
src/con.c
11
src/con.c
@ -1411,6 +1411,17 @@ Con *con_descend_direction(Con *con, direction_t direction) {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
Rect con_border_style_rect(Con *con) {
|
Rect con_border_style_rect(Con *con) {
|
||||||
|
Con *cur = con;
|
||||||
|
while (cur->floating < 2 && cur) {
|
||||||
|
Con *par = cur->parent;
|
||||||
|
if (con_num_children(par) == 1)
|
||||||
|
if (par->type == CT_WORKSPACE)
|
||||||
|
return (Rect){0, 0, 0, 0};
|
||||||
|
else
|
||||||
|
cur = par;
|
||||||
|
else
|
||||||
|
break;
|
||||||
|
}
|
||||||
adjacent_t borders_to_hide = ADJ_NONE;
|
adjacent_t borders_to_hide = ADJ_NONE;
|
||||||
int border_width = con->current_border_width;
|
int border_width = con->current_border_width;
|
||||||
DLOG("The border width for con is set to: %d\n", con->current_border_width);
|
DLOG("The border width for con is set to: %d\n", con->current_border_width);
|
||||||
|
@ -25,10 +25,7 @@ static void render_con_dockarea(Con *con, Con *child, render_params *p);
|
|||||||
* Returns the height for the decorations
|
* Returns the height for the decorations
|
||||||
*/
|
*/
|
||||||
int render_deco_height(void) {
|
int render_deco_height(void) {
|
||||||
int deco_height = config.font.height + 4;
|
return config.font.height + 2;
|
||||||
if (config.font.height & 0x01)
|
|
||||||
++deco_height;
|
|
||||||
return deco_height;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user