diff --git a/mouse.c b/mouse.c index d95b6203..b34a25f5 100644 --- a/mouse.c +++ b/mouse.c @@ -36,7 +36,7 @@ extern awesome_t globalconf; -DO_LUA_NEW(extern, button_t, button, "button", button_ref) +DO_LUA_NEW(static, button_t, button, "button", button_ref) DO_LUA_GC(button_t, button, "button", button_unref) DO_LUA_EQ(button_t, button, "button") diff --git a/mouse.h b/mouse.h index a707422e..b938f631 100644 --- a/mouse.h +++ b/mouse.h @@ -49,8 +49,6 @@ ARRAY_FUNCS(button_t *, button, button_unref) int luaA_client_mouse_resize(lua_State *); -int luaA_button_userdata_new(lua_State *, button_t *); - int luaA_button_array_get(lua_State *, button_array_t *); void luaA_button_array_set(lua_State *, int idx, button_array_t *);