diff --git a/awesome.c b/awesome.c index 646facb8..d621c947 100644 --- a/awesome.c +++ b/awesome.c @@ -64,7 +64,7 @@ awesome_atexit(void) int screen_nbr, nscreens; if(globalconf.hooks.exit != LUA_REFNIL) - luaA_dofunction_from_registry(globalconf.L, globalconf.hooks.exit, 0, 0); + luaA_dofunction(globalconf.L, globalconf.hooks.exit, 0, 0); a_dbus_cleanup();