From 3ad4de6c8cbdc767c6ac40b99764cc7bd8db066a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 13 Aug 2009 20:11:58 +0000 Subject: Add a base-index session option to specify the first index checked when looking for an index for a new window. --- cmd-move-window.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd-move-window.c') diff --git a/cmd-move-window.c b/cmd-move-window.c index f714c2cb..1cf72f94 100644 --- a/cmd-move-window.c +++ b/cmd-move-window.c @@ -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); -- cgit