aboutsummaryrefslogtreecommitdiff
path: root/resize.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2014-11-12 21:58:05 +0000
committerThomas Adam <thomas@xteddy.org>2014-11-12 21:58:05 +0000
commitbd803e82e96512473036461ec3832c569768e535 (patch)
tree85c0c8298e962531d2f3df4b65c150731c425d87 /resize.c
parentfc05bf255af2a39a8168320455f79e7e6d9e915a (diff)
parentf9308bc244bb568fb678effbbb08f8fb277e7560 (diff)
downloadrtmux-bd803e82e96512473036461ec3832c569768e535.tar.gz
rtmux-bd803e82e96512473036461ec3832c569768e535.tar.bz2
rtmux-bd803e82e96512473036461ec3832c569768e535.zip
Merge branch 'obsd-master'
Diffstat (limited to 'resize.c')
-rw-r--r--resize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/resize.c b/resize.c
index 70379420..73a728fa 100644
--- a/resize.c
+++ b/resize.c
@@ -117,10 +117,10 @@ recalculate_sizes(void)
continue;
limit = options_get_number(&w->options, "force-width");
- if (limit != 0 && ssx > limit)
+ if (limit >= PANE_MINIMUM && ssx > limit)
ssx = limit;
limit = options_get_number(&w->options, "force-height");
- if (limit != 0 && ssy > limit)
+ if (limit >= PANE_MINIMUM && ssy > limit)
ssy = limit;
if (w->sx == ssx && w->sy == ssy)