From: Michael Stapelberg Date: Wed, 2 Jun 2010 16:58:52 +0000 (+0200) Subject: bugfix: the layout command needs to change the layout of the parent container X-Git-Tag: tree-pr1~187 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5bff638ea007f1290ab4bf9856794520010da328;p=i3%2Fi3 bugfix: the layout command needs to change the layout of the parent container --- diff --git a/src/cmdparse.y b/src/cmdparse.y index ab3dd4cc..cae2d3c5 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -482,7 +482,7 @@ layout: /* check if the match is empty, not if the result is empty */ if (match_is_empty(¤t_match)) - focused->layout = $3; + focused->parent->layout = $3; else { TAILQ_FOREACH(current, &owindows, owindows) { printf("matching: %p / %s\n", current->con, current->con->name);