diff options
author | Thomas Adam <thomas@xteddy.org> | 2018-06-24 23:02:25 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2018-06-24 23:02:25 +0100 |
commit | 94712a8b0df6d5de21409e762e462371fb5e8497 (patch) | |
tree | e2bde9b7fb9a400dc5a185293acf3790f63fb667 | |
parent | 9da78d72de478c1ea2e8d0fc3a8efa06cfaaeaf7 (diff) | |
parent | dec6ec9e29033cb4739b9eec5f3a5c68dece878a (diff) | |
download | rtmux-94712a8b0df6d5de21409e762e462371fb5e8497.tar.gz rtmux-94712a8b0df6d5de21409e762e462371fb5e8497.tar.bz2 rtmux-94712a8b0df6d5de21409e762e462371fb5e8497.zip |
Merge branch 'obsd-master'
-rw-r--r-- | cmd-resize-pane.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-resize-pane.c b/cmd-resize-pane.c index 7e4c58cf..6b991aa6 100644 --- a/cmd-resize-pane.c +++ b/cmd-resize-pane.c @@ -131,12 +131,12 @@ cmd_resize_pane_mouse_update(struct client *c, struct mouse_event *m) struct winlink *wl; struct window *w; u_int y, ly, x, lx; - struct layout_cell *cells[5], *lc; - u_int ncells = 0, i, j, resizes = 0; - enum layout_type type; - static const int offsets[nitems(cells)][2] = { + static const int offsets[][2] = { { 0, 0 }, { 0, 1 }, { 1, 0 }, { 0, -1 }, { -1, 0 }, }; + struct layout_cell *cells[nitems(offsets)], *lc; + u_int ncells = 0, i, j, resizes = 0; + enum layout_type type; wl = cmd_mouse_window(m, NULL); if (wl == NULL) { |