Immediate-Mode-UI / Immediate-Mode-UI/Nuklear

Cannot unhide window

Open
#215 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11.4k
Forks
686
Avg merge
4d 1h
Merged PRs (30d)
3

Description

Hello
```d
static int flags = NK_WINDOW_TITLE | NK_WINDOW_MOVABLE | NK_WINDOW_HIDDEN;

if (nk_begin(ctx, "Win 1", nk_rect(50, 50, 200, 200), NK_WINDOW_TITLE | NK_WINDOW_MOVABLE))
{
nk_layout_row_dynamic(ctx, 30, 1);
if (nk_button_label(ctx, `Show`))
flags &= ~NK_WINDOW_HIDDEN;
}
nk_end(ctx);

nk_begin(ctx, "Win 2", nk_rect(50, 50, 200, 200), flags);
nk_end(ctx);
```

After pressing button `Show` Win 2 does not appear, while should

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the nk_begin calls in the reproduction and trace how NK_WINDOW_HIDDEN is handled between frames. Verify the flag change after pressing Show, then confirm that Win 2 becomes visible while retaining its title and movable behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.