Add a base-index session option to specify the first index checked when looking

for an index for a new window.
This commit is contained in:
Nicholas Marriott
2009-08-13 20:11:58 +00:00
parent 3026118c70
commit 3ad4de6c8c
11 changed files with 40 additions and 20 deletions

View File

@ -79,6 +79,8 @@ cmd_move_window_exec(struct cmd *self, struct cmd_ctx *ctx)
}
}
if (idx == -1)
idx = -1 - options_get_number(&dst->options, "base-index");
wl_dst = session_attach(dst, wl_src->window, idx, &cause);
if (wl_dst == NULL) {
ctx->error(ctx, "attach window failed: %s", cause);