lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, 20 Jan 2014 00:41:28 -0500, Rena wrote:

> Having a strange issue with button events with lgi. When right-clicking
> a tab in this program I get an error:
> 
> ./test.lua:34: bad argument #2 to 'triggers_context_menu' (Gdk.Event
> expected, got userdata)
> 
> but there isn't even a second argument?

Thank you for the testcase. This is caused by strange hierarchy of 
Gdk.Event type - it is actually union of more specific types, which 
renders generic Gdk.Event methods unreachable on specific event types.

I pushed workaround into lgi master, your testcase works fine now.

Pavel