foo-wm

(Archived) Experimental Zooming IPC-based WM
git clone http://milesalan.com/git/foo-wm
Log | Files | Refs | Mirror | README | LICENSE

commit c54f08bb6e77b68b550d51bcd365221395b302dc
parent 386c7ec2608425dc2e7ebfef58fe41a683eb2a21
Author: = <miles.sandlar@gmail.com>
Date:   Thu, 11 Oct 2012 12:41:19 -0400

Bugfix with containerize making node dissapear
Proper check

Diffstat:
Msrc/commands.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/commands.c b/src/commands.c @@ -77,8 +77,8 @@ void absorb(char * argA, char * argB) { void containerize(void) { if (!focusedNode) return; - if (focusedNode -> child && !isClient(focusedNode -> child)) - if (isOnlyChild(focusedNode -> child)) return; + if (focusedNode -> parent && focusedNode -> parent -> child && !isClient(focusedNode -> parent)) + if (isOnlyChild(focusedNode)) return; Node *insertNode, *newContainer = allocateNode(); int insertPosition; if (focusedNode -> parent && focusedNode -> parent -> focus == focusedNode)