foo-wm

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

commit c952ad69f6245a50c0349a96e6cb828a716e0f5c
parent 9fc7a7ddcfdf1d2bfc9e43461a863428002e56f8
Author: Miles Sandlar <miles.sandlar@gmail.com>
Date:   Fri,  6 Jul 2012 18:27:20 -0400

Parent must be reassigned to node in brotherNode

Diffstat:
Msrc/tree.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/tree.c b/src/tree.c @@ -117,10 +117,11 @@ void unparentNode(Node *node) { void brotherNode(Node *node, Node * brother, int position) { + node -> parent = brother -> parent; + if (position == 0) { node -> next = brother; if (brother -> previous == NULL) { //Pop in the front - node -> parent = brother -> parent; node -> parent -> child = node; } else { //Shift previous pointer