From: nicm Date: Thu, 6 Jan 2022 08:20:00 +0000 (+0000) Subject: Ignore windows without a size set (may be used for pane only), from X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=55f2f58035d16ba1ce5f42f03721eacd33ee1e5b;p=openbsd Ignore windows without a size set (may be used for pane only), from Anindya Mukherjee. --- 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 {