]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Fix 'resize' with direction != 'up' for floating windows
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 3 Aug 2011 12:48:52 +0000 (14:48 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 3 Aug 2011 12:48:52 +0000 (14:48 +0200)
Fixes #447

src/cmdparse.y

index ec8e6c2c84e7a72e698e86827af56a17b248f4ee..df7b6efeb83f9809e815e72eb872e29177b426e1 100644 (file)
@@ -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");