version 1.76, 2020/05/16 15:34:08 |
version 1.77, 2020/05/16 16:20:59 |
|
|
struct window_pane **wpp) |
struct window_pane **wpp) |
{ |
{ |
struct window *w = c->session->curw->window; |
struct window *w = c->session->curw->window; |
struct window_pane *wp; |
struct window_pane *wp, *active; |
int border; |
int border; |
u_int right, line; |
u_int right, line; |
|
|
|
|
return (screen_redraw_type_of_cell(c, px, py, pane_status)); |
return (screen_redraw_type_of_cell(c, px, py, pane_status)); |
|
|
if (pane_status != PANE_STATUS_OFF) { |
if (pane_status != PANE_STATUS_OFF) { |
wp = w->active; |
active = wp = server_client_get_pane(c); |
do { |
do { |
if (!window_pane_visible(wp)) |
if (!window_pane_visible(wp)) |
goto next1; |
goto next1; |
|
|
wp = TAILQ_NEXT(wp, entry); |
wp = TAILQ_NEXT(wp, entry); |
if (wp == NULL) |
if (wp == NULL) |
wp = TAILQ_FIRST(&w->panes); |
wp = TAILQ_FIRST(&w->panes); |
} while (wp != w->active); |
} while (wp != active); |
} |
} |
|
|
wp = w->active; |
active = wp = server_client_get_pane(c); |
do { |
do { |
if (!window_pane_visible(wp)) |
if (!window_pane_visible(wp)) |
goto next2; |
goto next2; |
|
|
wp = TAILQ_NEXT(wp, entry); |
wp = TAILQ_NEXT(wp, entry); |
if (wp == NULL) |
if (wp == NULL) |
wp = TAILQ_FIRST(&w->panes); |
wp = TAILQ_FIRST(&w->panes); |
} while (wp != w->active); |
} while (wp != active); |
|
|
return (CELL_OUTSIDE); |
return (CELL_OUTSIDE); |
} |
} |
|
|
ft = format_create(c, NULL, FORMAT_PANE|wp->id, FORMAT_STATUS); |
ft = format_create(c, NULL, FORMAT_PANE|wp->id, FORMAT_STATUS); |
format_defaults(ft, c, c->session, c->session->curw, wp); |
format_defaults(ft, c, c->session, c->session->curw, wp); |
|
|
if (wp == w->active) |
if (wp == server_client_get_pane(c)) |
style_apply(&gc, w->options, "pane-active-border-style", ft); |
style_apply(&gc, w->options, "pane-active-border-style", ft); |
else |
else |
style_apply(&gc, w->options, "pane-border-style", ft); |
style_apply(&gc, w->options, "pane-border-style", ft); |
|
|
struct client *c = ctx->c; |
struct client *c = ctx->c; |
struct session *s = c->session; |
struct session *s = c->session; |
struct window *w = s->curw->window; |
struct window *w = s->curw->window; |
|
struct window_pane *active = server_client_get_pane(c); |
struct options *oo = w->options; |
struct options *oo = w->options; |
struct grid_cell *gc; |
struct grid_cell *gc; |
struct format_tree *ft; |
struct format_tree *ft; |
|
|
ft = format_create_defaults(NULL, c, s, s->curw, wp); |
ft = format_create_defaults(NULL, c, s, s->curw, wp); |
gc = &wp->border_gc; |
gc = &wp->border_gc; |
|
|
if (screen_redraw_check_is(x, y, ctx->pane_status, w->active)) { |
if (screen_redraw_check_is(x, y, ctx->pane_status, active)) { |
style_apply(gc, oo, "pane-active-border-style", ft); |
style_apply(gc, oo, "pane-active-border-style", ft); |
gc->attr |= GRID_ATTR_CHARSET; |
gc->attr |= GRID_ATTR_CHARSET; |
} else { |
} else { |