From f9308bc244bb568fb678effbbb08f8fb277e7560 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 12 Nov 2014 16:00:03 +0000 Subject: [PATCH] Don't let force-width or force-height be < PANE_MINIMUM. --- resize.c | 4 ++-- 1 file 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)