diff options
Diffstat (limited to 'cmd-previous-layout.c')
-rw-r--r-- | cmd-previous-layout.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd-previous-layout.c b/cmd-previous-layout.c index f4270f14..44071eb5 100644 --- a/cmd-previous-layout.c +++ b/cmd-previous-layout.c @@ -44,12 +44,13 @@ cmd_previous_layout_exec(struct cmd *self, struct cmd_ctx *ctx) { struct cmd_target_data *data = self->data; struct winlink *wl; - + u_int layout; + if ((wl = cmd_find_window(ctx, data->target, NULL)) == NULL) return (-1); - layout_previous(wl->window); - ctx->info(ctx, "layout now: %s", layout_name(wl->window)); + layout = layout_set_previous(wl->window); + ctx->info(ctx, "arranging in: %s", layout_set_name(layout)); return (0); } |