summaryrefslogtreecommitdiffstats
path: root/resize.c
diff options
context:
space:
mode:
authornicm <nicm>2014-11-12 16:00:03 +0000
committernicm <nicm>2014-11-12 16:00:03 +0000
commitf9308bc244bb568fb678effbbb08f8fb277e7560 (patch)
tree911790cc196216fdf37fe436e53ffa2a9ab596b0 /resize.c
parent7697f5aa8feb11967e09d4933c2b11f487b6a535 (diff)
Don't let force-width or force-height be < PANE_MINIMUM.
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)