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:
Uli Schlachter 2014-12-06 10:55:21 +01:00
parent f957764e52
commit 4cfea189f0
1 changed files with 2 additions and 2 deletions

View File

@ -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);