Fixed #20
authorMarijn van Vliet <w.m.vanvliet@gmail.com>
Sat, 18 Jun 2011 16:12:14 +0000 (18:12 +0200)
committerMarijn van Vliet <w.m.vanvliet@gmail.com>
Sat, 18 Jun 2011 16:12:14 +0000 (18:12 +0200)
libchimara/window.c

index 80aee2f7b07de1d00cae7a43bd0e4c002b6ea030..e54dfc3ae0f8cf4110333f3d566dc4114195be3b 100644 (file)
@@ -127,6 +127,8 @@ glk_window_iterate(winid_t win, glui32 *rockptr)
        if(retval && rockptr)
                *rockptr = glk_window_get_rock(retval);
                
+       if(retval)
+               printf("Returning window of type %d and rock %d\n", retval->type, retval->rock);
        return retval;
 }
 
@@ -202,8 +204,8 @@ glk_window_get_sibling(winid_t win)
        if(G_NODE_IS_ROOT(win->window_node))
                return NULL;
        if(win->window_node->next)
-               return (winid_t)win->window_node->next;
-       return (winid_t)win->window_node->prev;
+               return (winid_t)win->window_node->next->data;
+       return (winid_t)win->window_node->prev->data;
 }
 
 /**