diff --git a/client.c b/client.c index 5a99a387..2add23c0 100644 --- a/client.c +++ b/client.c @@ -1105,7 +1105,7 @@ luaA_client_tags(lua_State *L) } tags = &globalconf.screens[(*c)->screen].tags; - lua_newtable(L); + luaA_otable_new(L); for(int i = 0; i < tags->len; i++) if(is_client_tagged(*c, tags->tab[i])) { diff --git a/mouse.c b/mouse.c index 0990b430..b7699661 100644 --- a/mouse.c +++ b/mouse.c @@ -1156,7 +1156,7 @@ luaA_button_array_set(lua_State *L, int idx, button_array_t *buttons) int luaA_button_array_get(lua_State *L, button_array_t *buttons) { - lua_newtable(L); + luaA_otable_new(L); for(int i = 0; i < buttons->len; i++) { luaA_button_userdata_new(L, buttons->tab[i]); diff --git a/tag.c b/tag.c index a0a30109..0399a78a 100644 --- a/tag.c +++ b/tag.c @@ -322,7 +322,7 @@ luaA_tag_clients(lua_State *L) } } - lua_newtable(L); + luaA_otable_new(L); for(i = 0; i < clients->len; i++) { luaA_client_userdata_new(L, clients->tab[i]);