aboutsummaryrefslogtreecommitdiff
path: root/cmd-move-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-move-window.c')
-rw-r--r--cmd-move-window.c2
1 files changed, 2 insertions, 0 deletions
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);