Skip to content

Lua events not propagating to event handlers outside of the wxLuaState itself #127

@Zekkers

Description

@Zekkers

I recently merged up to the latest wxLua and noticed that I was no longer getting events like wxEVT_LUA_ERROR which I capture to log and display.

I checked the diff of the merge and noticed the changes from commit bde906e39b19f5179c66c44c9b681f40bf4475e0 . I reverted just that commit in my own repo, and the events started working again.

The frame in question is largely based on the wxLuaStandaloneApp with respect to the event handling.

Looks like wxDEFINE_EVENT calls in wxlstate.h could be executed multiple times if included by different modules, so the event IDs are not matching.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions