From: Michael Stapelberg Date: Wed, 3 Aug 2011 12:48:52 +0000 (+0200) Subject: Bugfix: Fix 'resize' with direction != 'up' for floating windows X-Git-Tag: 4.0.2~63^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cc5f3ce95a657696e1404618c2cae390cdeb662e;p=i3%2Fi3 Bugfix: Fix 'resize' with direction != 'up' for floating windows Fixes #447 --- diff --git a/src/cmdparse.y b/src/cmdparse.y index ec8e6c2c..df7b6efe 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -785,12 +785,12 @@ resize: focused->parent->rect.y -= px; focused->parent->rect.height += px; } else if (direction == TOK_DOWN) { - focused->rect.height += px; + focused->parent->rect.height += px; } else if (direction == TOK_LEFT) { - focused->rect.x -= px; - focused->rect.width += px; + focused->parent->rect.x -= px; + focused->parent->rect.width += px; } else { - focused->rect.width += px; + focused->parent->rect.width += px; } } else { LOG("tiling resize\n");