Skip to content

Conversation

lockie
Copy link
Contributor

@lockie lockie commented Oct 10, 2025

Hello! Right now nk_widget_is_hovered and its mouse friends nk_widget_mouse_clicked and nk_widget_has_mouse_click_down do not work for popup windows, always returning 0. This PR fixes that by making exception to always look inside the windows with NK_PANEL_SET_POPUP layout type.

lockie added a commit to lockie/cl-liballegro-nuklear that referenced this pull request Oct 10, 2025
Copy link
Contributor

@RobLoach RobLoach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me. Thanks a lot for pushing this forwards.

Copy link
Contributor

@RobLoach RobLoach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, we'll have to make this change in the src file before it makes its way into nuklear.h. Mind fixing it there as well?

Copy link

@RafaDEV99 RafaDEV99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this is very Good! However, as noted by @RobLoach, it first needs to be pushed to the src file (i.e., src/nuklear.c).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants