aboutsummaryrefslogtreecommitdiff
path: root/resize.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2022-01-06 10:01:12 +0000
committerThomas Adam <thomas@xteddy.org>2022-01-06 10:01:12 +0000
commit28b6237c623f507188a782a016563c78dd0ffb85 (patch)
tree1e21afcc6dc969bcdd1dc4576598649c58411b4b /resize.c
parente5e4df7a2241298b7ea3ba77b5fe1fdef6df0e08 (diff)
parentb2b94dcba73a62e2949fb98aee097dbaea658760 (diff)
downloadrtmux-28b6237c623f507188a782a016563c78dd0ffb85.tar.gz
rtmux-28b6237c623f507188a782a016563c78dd0ffb85.tar.bz2
rtmux-28b6237c623f507188a782a016563c78dd0ffb85.zip
Merge branch 'obsd-master' into master
Diffstat (limited to 'resize.c')
-rw-r--r--resize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resize.c b/resize.c
index 175dd740..18a02adb 100644
--- a/resize.c
+++ b/resize.c
@@ -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 {