Initial commit. Add new new-floating-window command to create panes without a layout_cell indicating they are floating panes.

This commit is contained in:
Michael Grant
2025-10-04 09:15:51 +01:00
parent 3e28777ecb
commit 968f439672
6 changed files with 174 additions and 2 deletions

View File

@@ -265,7 +265,14 @@ spawn_pane(struct spawn_context *sc, char **cause)
new_wp->flags &= ~(PANE_STATUSREADY|PANE_STATUSDRAWN);
} else if (sc->lc == NULL) {
new_wp = window_add_pane(w, NULL, hlimit, sc->flags);
layout_init(w, new_wp);
if (sc->flags & SPAWN_FLOATING) {
new_wp->flags |= PANE_FLOATING;
window_pane_resize(new_wp, sc->sx, sc->sy);
new_wp->xoff = sc->xoff;
new_wp->yoff = sc->yoff;
} else {
layout_init(w, new_wp);
}
} else {
new_wp = window_add_pane(w, sc->wp0, hlimit, sc->flags);
if (sc->flags & SPAWN_ZOOM)