diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-04-02 21:11:52 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-04-02 21:11:52 +0000 |
commit | 15f24910235be301b785b5de760f42b01e1e00fd (patch) | |
tree | 189802410b0d097d255a5134b10df2059c3988a6 /cmd-resize-pane-up.c | |
parent | dbf52facd2fa678a9705428d881a9d99188d401d (diff) | |
download | rtmux-15f24910235be301b785b5de760f42b01e1e00fd.tar.gz rtmux-15f24910235be301b785b5de760f42b01e1e00fd.tar.bz2 rtmux-15f24910235be301b785b5de760f42b01e1e00fd.zip |
Don't permit resizing except in manual mode.
Diffstat (limited to 'cmd-resize-pane-up.c')
-rw-r--r-- | cmd-resize-pane-up.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd-resize-pane-up.c b/cmd-resize-pane-up.c index 5c685c78..11d102b9 100644 --- a/cmd-resize-pane-up.c +++ b/cmd-resize-pane-up.c @@ -1,4 +1,4 @@ -/* $Id: cmd-resize-pane-up.c,v 1.7 2009-03-28 14:08:09 nicm Exp $ */ +/* $Id: cmd-resize-pane-up.c,v 1.8 2009-04-02 21:11:52 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -65,6 +65,10 @@ cmd_resize_pane_up_exec(struct cmd *self, struct cmd_ctx *ctx) if ((wl = cmd_find_window(ctx, data->target, NULL)) == NULL) return (-1); + if (wl->window->layout != 0) { + ctx->error(ctx, "window not in manual layout"); + return (-1); + } if (data->pane == -1) wp = wl->window->active; else { |