Fixed closing window bug of minimized windows #291
This commit is contained in:
parent
a4010b11fa
commit
020a562c2e
@ -16056,7 +16056,8 @@ nk_clear(struct nk_context *ctx)
|
|||||||
iter = ctx->begin;
|
iter = ctx->begin;
|
||||||
while (iter) {
|
while (iter) {
|
||||||
/* make sure minimized windows do not get removed */
|
/* make sure minimized windows do not get removed */
|
||||||
if (iter->flags & NK_WINDOW_MINIMIZED) {
|
if ((iter->flags & NK_WINDOW_MINIMIZED) &&
|
||||||
|
!(iter)->flags & NK_WINDOW_CLOSED) {
|
||||||
iter = iter->next;
|
iter = iter->next;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user