X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fevent.c;h=366c18929905840e06345a8957d422c6f9702462;hb=f5361c37bf7265628802787ea90164bab8108d3a;hp=765f6645bd234f01dd9b21d7b1871e664a970369;hpb=e8dfef1e24bbab1640aff3c1f507af9cec4bdf97;p=rodin%2Fchimara.git diff --git a/libchimara/event.c b/libchimara/event.c index 765f664..366c189 100644 --- a/libchimara/event.c +++ b/libchimara/event.c @@ -147,8 +147,15 @@ glk_select(event_t *event) { g_return_if_fail(event != NULL); + /* Flush all window buffers */ + winid_t win; + for(win = glk_window_iterate(NULL, NULL); win != NULL; win = glk_window_iterate(win, NULL)) { + if(win->type == wintype_TextBuffer) + flush_window_buffer(win); + } + ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key); - + get_appropriate_event(event); /* Check for interrupt */