From 9f738dd2fe01b5b70c07280450eed32614c561c2 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 9 Nov 2011 12:02:07 +0000 Subject: Fix a trivial copy-and-paste error (sx->sy), from Chris Johnsen. --- layout-set.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layout-set.c') diff --git a/layout-set.c b/layout-set.c index eb75233a..98ed9736 100644 --- a/layout-set.c +++ b/layout-set.c @@ -260,8 +260,8 @@ layout_set_main_h(struct window *w) * If an other pane height was specified, honour it so long as it * doesn't shrink the main height to less than the main-pane-height */ - if (otherheight > 1 && w->sx - otherheight > mainheight) - mainheight = w->sx - otherheight; + if (otherheight > 1 && w->sy - otherheight > mainheight) + mainheight = w->sy - otherheight; if (mainheight < PANE_MINIMUM + 1) mainheight = PANE_MINIMUM + 1; -- cgit v1.2.3