From 55f2f58035d16ba1ce5f42f03721eacd33ee1e5b Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 6 Jan 2022 08:20:00 +0000 Subject: [PATCH] Ignore windows without a size set (may be used for pane only), from Anindya Mukherjee. --- usr.bin/tmux/resize.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/tmux/resize.c b/usr.bin/tmux/resize.c index bc141e50be6..5e22cf9c8bd 100644 --- a/usr.bin/tmux/resize.c +++ b/usr.bin/tmux/resize.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resize.c,v 1.48 2021/12/06 10:08:42 nicm Exp $ */ +/* $OpenBSD: resize.c,v 1.49 2022/01/06 08:20:00 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -178,7 +178,7 @@ clients_calculate_size(int type, int current, struct client *c, cw = NULL; /* Work out this client's size. */ - if (cw != NULL) { + if (cw != NULL && cw->sx != 0 && cw->sy != 0) { cx = cw->sx; cy = cw->sy; } else { -- 2.20.1