summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/commands/resize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/resize.c b/sway/commands/resize.c
index 4038e331..ca36e858 100644
--- a/sway/commands/resize.c
+++ b/sway/commands/resize.c
@@ -224,7 +224,7 @@ static struct cmd_results *resize_adjust_floating(uint32_t axis,
224 } else if (axis == WLR_EDGE_LEFT) { 224 } else if (axis == WLR_EDGE_LEFT) {
225 grow_x = -grow_width; 225 grow_x = -grow_width;
226 } 226 }
227 if (grow_x == 0 && grow_y == 0) { 227 if (grow_width == 0 && grow_height == 0) {
228 return cmd_results_new(CMD_INVALID, "Cannot resize any further"); 228 return cmd_results_new(CMD_INVALID, "Cannot resize any further");
229 } 229 }
230 con->x += grow_x; 230 con->x += grow_x;