]> git.sur5r.net Git - i3/i3/commitdiff
bugfix: the layout command needs to change the layout of the parent container
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 2 Jun 2010 16:58:52 +0000 (18:58 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 2 Jun 2010 16:58:52 +0000 (18:58 +0200)
src/cmdparse.y

index ab3dd4cc0e0ca89c304400256b637a87257b3902..cae2d3c56bd1728fc100e926eeb5930f6b0836a6 100644 (file)
@@ -482,7 +482,7 @@ layout:
 
         /* check if the match is empty, not if the result is empty */
         if (match_is_empty(&current_match))
-            focused->layout = $<number>3;
+            focused->parent->layout = $<number>3;
         else {
             TAILQ_FOREACH(current, &owindows, owindows) {
                 printf("matching: %p / %s\n", current->con, current->con->name);