From: Marijn van Vliet Date: Sat, 18 Jun 2011 16:12:14 +0000 (+0200) Subject: Fixed #20 X-Git-Tag: v0.9~73^2~7 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=51ea6cf2b7df96766d21f465a6d7a0a3acefbe2d;p=projects%2Fchimara%2Fchimara.git Fixed #20 --- diff --git a/libchimara/window.c b/libchimara/window.c index 80aee2f..e54dfc3 100644 --- a/libchimara/window.c +++ b/libchimara/window.c @@ -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; } /**