diff options
author | Thomas Adam <thomas@xteddy.org> | 2016-10-10 20:01:11 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2016-10-10 20:01:11 +0100 |
commit | 27126f87976c63161fcae2ab1eb9c6df726a84ff (patch) | |
tree | baac12e95ead1eb34c0dc85fedbcd3817c764f4c /cmd-resize-pane.c | |
parent | 226b6a21929a9ea6b90152aecae4916eae7da005 (diff) | |
parent | 66b5477cc1909e57489f854939a524ce2cd0f479 (diff) | |
download | rtmux-27126f87976c63161fcae2ab1eb9c6df726a84ff.tar.gz rtmux-27126f87976c63161fcae2ab1eb9c6df726a84ff.tar.bz2 rtmux-27126f87976c63161fcae2ab1eb9c6df726a84ff.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-resize-pane.c')
-rw-r--r-- | cmd-resize-pane.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cmd-resize-pane.c b/cmd-resize-pane.c index 7ec65f10..fa52ab14 100644 --- a/cmd-resize-pane.c +++ b/cmd-resize-pane.c @@ -111,13 +111,13 @@ cmd_resize_pane_exec(struct cmd *self, struct cmd_q *cmdq) } if (args_has(self->args, 'L')) - layout_resize_pane(wp, LAYOUT_LEFTRIGHT, -adjust); + layout_resize_pane(wp, LAYOUT_LEFTRIGHT, -adjust, 1); else if (args_has(self->args, 'R')) - layout_resize_pane(wp, LAYOUT_LEFTRIGHT, adjust); + layout_resize_pane(wp, LAYOUT_LEFTRIGHT, adjust, 1); else if (args_has(self->args, 'U')) - layout_resize_pane(wp, LAYOUT_TOPBOTTOM, -adjust); + layout_resize_pane(wp, LAYOUT_TOPBOTTOM, -adjust, 1); else if (args_has(self->args, 'D')) - layout_resize_pane(wp, LAYOUT_TOPBOTTOM, adjust); + layout_resize_pane(wp, LAYOUT_TOPBOTTOM, adjust, 1); server_redraw_window(wl->window); return (CMD_RETURN_NORMAL); @@ -155,12 +155,12 @@ cmd_resize_pane_mouse_update(struct client *c, struct mouse_event *m) if (wp->xoff + wp->sx == m->lx && wp->yoff <= 1 + ly && wp->yoff + wp->sy >= ly) { - layout_resize_pane(wp, LAYOUT_LEFTRIGHT, m->x - m->lx); + layout_resize_pane(wp, LAYOUT_LEFTRIGHT, m->x - m->lx, 0); found = 1; } if (wp->yoff + wp->sy == ly && wp->xoff <= 1 + m->lx && wp->xoff + wp->sx >= m->lx) { - layout_resize_pane(wp, LAYOUT_TOPBOTTOM, y - ly); + layout_resize_pane(wp, LAYOUT_TOPBOTTOM, y - ly, 0); found = 1; } } |