From 94c0412a086110dc801d83c20be7cb4e89dbd5d1 Mon Sep 17 00:00:00 2001 From: vurtun Date: Tue, 20 Mar 2018 11:22:04 +0100 Subject: [PATCH] Fixed #647 window open/close flickering Opening and closing a set of windows with at least one other window active caused flickering if a window as closed. Reason was a missing check inside `nk_build` that did not skip newly closed windows. I am not 100% sure but this could also affect #637 but I still needs to be tested. --- nuklear.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuklear.h b/nuklear.h index e57018a..dacc4e9 100644 --- a/nuklear.h +++ b/nuklear.h @@ -18941,7 +18941,7 @@ nk_build(struct nk_context *ctx) cmd = nk_ptr_add(struct nk_command, buffer, it->buffer.last); while (next && ((next->buffer.last == next->buffer.begin) || - (next->flags & NK_WINDOW_HIDDEN))) + (next->flags & NK_WINDOW_HIDDEN) || next->seq != ctx->seq)) next = next->next; /* skip empty command buffers */ if (next) cmd->next = next->buffer.begin;