summaryrefslogtreecommitdiffstats
path: root/resize.c
diff options
context:
space:
mode:
authornicm <nicm>2022-01-06 08:20:00 +0000
committernicm <nicm>2022-01-06 08:20:00 +0000
commitb2b94dcba73a62e2949fb98aee097dbaea658760 (patch)
tree78899538029c897aeea39f5a781004ee0fba8e8f /resize.c
parente6e3c75ed70adece8b1cf93017f6f359d022bdb0 (diff)
Ignore windows without a size set (may be used for pane only), from
Anindya Mukherjee.
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 {