X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fwindow.c;h=1f287700a8ce8a51dfc11355ed28dd6bf2a3481c;hb=faf7f9000694400dc2dd541eb4d74a535990afb5;hp=a31bed1b251f7b749d82a325a2b058c599bd4b93;hpb=3e6242ffce4e67eb1c08f68feb57a31b79d51524;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/window.c b/libchimara/window.c index a31bed1..1f28770 100644 --- a/libchimara/window.c +++ b/libchimara/window.c @@ -1145,6 +1145,7 @@ glk_window_get_size(winid_t win, glui32 *widthptr, glui32 *heightptr) void glk_window_set_arrangement(winid_t win, glui32 method, glui32 size, winid_t keywin) { + printf("set_arrangement(%d)\n", size); VALID_WINDOW(win, return); VALID_WINDOW_OR_NULL(keywin, return); g_return_if_fail(win->type == wintype_Pair); @@ -1232,6 +1233,8 @@ glk_window_move_cursor(winid_t win, glui32 xpos, glui32 ypos) VALID_WINDOW(win, return); g_return_if_fail(win->type == wintype_TextGrid); + flush_window_buffer(win); + ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key); /* Wait until the window's size is current */ @@ -1250,6 +1253,7 @@ glk_window_move_cursor(winid_t win, glui32 xpos, glui32 ypos) ypos += xpos / win->width; xpos %= win->width; } + /* Go to the end if the cursor is moved off the bottom edge */ if(ypos >= win->height) {