drawin: Use the correct lua_State for the stack index
This just pushed the drawin onto the stack L, but then tries to access it via globalconf.L. This just calls for problems... Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
f957764e52
commit
4cfea189f0
|
@ -231,7 +231,7 @@ drawin_set_visible(lua_State *L, int udx, bool v)
|
||||||
/* duplicate drawin */
|
/* duplicate drawin */
|
||||||
lua_pushvalue(L, udx);
|
lua_pushvalue(L, udx);
|
||||||
/* ref it */
|
/* ref it */
|
||||||
luaA_object_ref_class(globalconf.L, -1, &drawin_class);
|
luaA_object_ref_class(L, -1, &drawin_class);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -242,7 +242,7 @@ drawin_set_visible(lua_State *L, int udx, bool v)
|
||||||
/* Active BMA */
|
/* Active BMA */
|
||||||
client_restore_enterleave_events();
|
client_restore_enterleave_events();
|
||||||
/* unref it */
|
/* unref it */
|
||||||
luaA_object_unref(globalconf.L, drawin);
|
luaA_object_unref(L, drawin);
|
||||||
}
|
}
|
||||||
|
|
||||||
luaA_object_emit_signal(L, udx, "property::visible", 0);
|
luaA_object_emit_signal(L, udx, "property::visible", 0);
|
||||||
|
|
Loading…
Reference in New Issue