Merge branch 'master' into floating_panes

This commit is contained in:
Dane Jensen
2026-06-15 16:52:21 -07:00
21 changed files with 300 additions and 97 deletions

View File

@@ -409,11 +409,11 @@ window_remove_ref(struct window *w, const char *from)
}
void
window_set_name(struct window *w, const char *new_name)
window_set_name(struct window *w, const char *new_name, const char *forbid)
{
char *name;
name = clean_name(new_name, "#");
name = clean_name(new_name, forbid);
if (name != NULL) {
free(w->name);
w->name = name;
@@ -654,7 +654,7 @@ window_get_active_at(struct window *w, u_int x, u_int y)
* bottom border.
*/
TAILQ_FOREACH(wp, &w->z_index, zentry) {
if (!window_pane_visible(wp) ||
if (!window_pane_is_visible(wp) ||
window_pane_is_floating(wp))
continue;
@@ -668,7 +668,7 @@ window_get_active_at(struct window *w, u_int x, u_int y)
}
TAILQ_FOREACH(wp, &w->z_index, zentry) {
if (!window_pane_visible(wp))
if (!window_pane_is_visible(wp))
continue;
window_pane_full_size_offset(wp, &xoff, &yoff, &sx, &sy);
if (!window_pane_is_floating(wp)) {
@@ -1124,7 +1124,7 @@ window_pane_create(struct window *w, u_int sx, u_int sy, u_int hlimit)
style_ranges_init(&wp->border_status_line.ranges);
if (gethostname(host, sizeof host) == 0)
screen_set_title(&wp->base, host);
screen_set_title(&wp->base, host, 0);
return (wp);
}
@@ -1391,7 +1391,7 @@ window_pane_copy_paste(struct window_pane *wp, char *buf, size_t len)
TAILQ_EMPTY(&loop->modes) &&
loop->fd != -1 &&
(~loop->flags & PANE_INPUTOFF) &&
window_pane_visible(loop) &&
window_pane_is_visible(loop) &&
options_get_number(loop->options, "synchronize-panes")) {
log_debug("%s: %.*s", __func__, (int)len, buf);
bufferevent_write(loop->event, buf, len);
@@ -1409,7 +1409,7 @@ window_pane_copy_key(struct window_pane *wp, key_code key)
TAILQ_EMPTY(&loop->modes) &&
loop->fd != -1 &&
(~loop->flags & PANE_INPUTOFF) &&
window_pane_visible(loop) &&
window_pane_is_visible(loop) &&
options_get_number(loop->options, "synchronize-panes"))
input_key_pane(loop, key, NULL);
}
@@ -1466,7 +1466,7 @@ window_pane_key(struct window_pane *wp, struct client *c, struct session *s,
}
int
window_pane_visible(struct window_pane *wp)
window_pane_is_visible(struct window_pane *wp)
{
if (window_pane_is_hidden(wp))
return (0);