Fixed #657 contextual activation code
This commit is contained in:
parent
60bd95c926
commit
d374953d27
@ -16894,6 +16894,8 @@ nk_contextual_begin(struct nk_context *ctx, nk_flags flags, struct nk_vec2 size,
|
||||
NK_ASSERT(ctx->current->layout);
|
||||
if (!ctx || !ctx->current || !ctx->current->layout)
|
||||
return 0;
|
||||
if (ctx->current != ctx->active)
|
||||
return 0;
|
||||
|
||||
win = ctx->current;
|
||||
++win->popup.con_count;
|
||||
|
@ -25,6 +25,8 @@ nk_contextual_begin(struct nk_context *ctx, nk_flags flags, struct nk_vec2 size,
|
||||
NK_ASSERT(ctx->current->layout);
|
||||
if (!ctx || !ctx->current || !ctx->current->layout)
|
||||
return 0;
|
||||
if (ctx->current != ctx->active)
|
||||
return 0;
|
||||
|
||||
win = ctx->current;
|
||||
++win->popup.con_count;
|
||||
|
Loading…
Reference in New Issue
Block a user