version 1.33, 2019/03/07 20:24:21 |
version 1.34, 2019/03/12 20:02:47 |
|
|
oy = (sy + 1) / 2; |
oy = (sy + 1) / 2; |
|
|
if (ox > 1 && ox + len < sx - 1 && sy >= 3) { |
if (ox > 1 && ox + len < sx - 1 && sy >= 3) { |
screen_write_cursormove(ctx, px + ox - 1, py + oy - 1); |
screen_write_cursormove(ctx, px + ox - 1, py + oy - 1, 0); |
screen_write_box(ctx, len + 2, 3); |
screen_write_box(ctx, len + 2, 3); |
} |
} |
screen_write_cursormove(ctx, px + ox, py + oy); |
screen_write_cursormove(ctx, px + ox, py + oy, 0); |
screen_write_puts(ctx, gc, "%s", label); |
screen_write_puts(ctx, gc, "%s", label); |
} |
} |
|
|
|
|
|
|
if (left) { |
if (left) { |
data->left = cx + 2; |
data->left = cx + 2; |
screen_write_cursormove(ctx, cx + 2, cy); |
screen_write_cursormove(ctx, cx + 2, cy, 0); |
screen_write_vline(ctx, sy, 0, 0); |
screen_write_vline(ctx, sy, 0, 0); |
screen_write_cursormove(ctx, cx, cy + sy / 2); |
screen_write_cursormove(ctx, cx, cy + sy / 2, 0); |
screen_write_puts(ctx, &grid_default_cell, "<"); |
screen_write_puts(ctx, &grid_default_cell, "<"); |
} else |
} else |
data->left = -1; |
data->left = -1; |
if (right) { |
if (right) { |
data->right = cx + sx - 3; |
data->right = cx + sx - 3; |
screen_write_cursormove(ctx, cx + sx - 3, cy); |
screen_write_cursormove(ctx, cx + sx - 3, cy, 0); |
screen_write_vline(ctx, sy, 0, 0); |
screen_write_vline(ctx, sy, 0, 0); |
screen_write_cursormove(ctx, cx + sx - 1, cy + sy / 2); |
screen_write_cursormove(ctx, cx + sx - 1, cy + sy / 2, 0); |
screen_write_puts(ctx, &grid_default_cell, ">"); |
screen_write_puts(ctx, &grid_default_cell, ">"); |
} else |
} else |
data->right = -1; |
data->right = -1; |
|
|
else |
else |
width = each - 1; |
width = each - 1; |
|
|
screen_write_cursormove(ctx, cx + offset, cy); |
screen_write_cursormove(ctx, cx + offset, cy, 0); |
screen_write_preview(ctx, &w->active->base, width, sy); |
screen_write_preview(ctx, &w->active->base, width, sy); |
|
|
xasprintf(&label, " %u:%s ", wl->idx, w->name); |
xasprintf(&label, " %u:%s ", wl->idx, w->name); |
|
|
free(label); |
free(label); |
|
|
if (loop != end - 1) { |
if (loop != end - 1) { |
screen_write_cursormove(ctx, cx + offset + width, cy); |
screen_write_cursormove(ctx, cx + offset + width, cy, 0); |
screen_write_vline(ctx, sy, 0, 0); |
screen_write_vline(ctx, sy, 0, 0); |
} |
} |
loop++; |
loop++; |
|
|
|
|
if (left) { |
if (left) { |
data->left = cx + 2; |
data->left = cx + 2; |
screen_write_cursormove(ctx, cx + 2, cy); |
screen_write_cursormove(ctx, cx + 2, cy, 0); |
screen_write_vline(ctx, sy, 0, 0); |
screen_write_vline(ctx, sy, 0, 0); |
screen_write_cursormove(ctx, cx, cy + sy / 2); |
screen_write_cursormove(ctx, cx, cy + sy / 2, 0); |
screen_write_puts(ctx, &grid_default_cell, "<"); |
screen_write_puts(ctx, &grid_default_cell, "<"); |
} else |
} else |
data->left = -1; |
data->left = -1; |
if (right) { |
if (right) { |
data->right = cx + sx - 3; |
data->right = cx + sx - 3; |
screen_write_cursormove(ctx, cx + sx - 3, cy); |
screen_write_cursormove(ctx, cx + sx - 3, cy, 0); |
screen_write_vline(ctx, sy, 0, 0); |
screen_write_vline(ctx, sy, 0, 0); |
screen_write_cursormove(ctx, cx + sx - 1, cy + sy / 2); |
screen_write_cursormove(ctx, cx + sx - 1, cy + sy / 2, 0); |
screen_write_puts(ctx, &grid_default_cell, ">"); |
screen_write_puts(ctx, &grid_default_cell, ">"); |
} else |
} else |
data->right = -1; |
data->right = -1; |
|
|
else |
else |
width = each - 1; |
width = each - 1; |
|
|
screen_write_cursormove(ctx, cx + offset, cy); |
screen_write_cursormove(ctx, cx + offset, cy, 0); |
screen_write_preview(ctx, &wp->base, width, sy); |
screen_write_preview(ctx, &wp->base, width, sy); |
|
|
if (window_pane_index(wp, &pane_idx) != 0) |
if (window_pane_index(wp, &pane_idx) != 0) |
|
|
free(label); |
free(label); |
|
|
if (loop != end - 1) { |
if (loop != end - 1) { |
screen_write_cursormove(ctx, cx + offset + width, cy); |
screen_write_cursormove(ctx, cx + offset + width, cy, 0); |
screen_write_vline(ctx, sy, 0, 0); |
screen_write_vline(ctx, sy, 0, 0); |
} |
} |
loop++; |
loop++; |