awesome: close lua in atexit()
So it does it also when restarting. Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
36180b9a41
commit
f4ea2f3052
|
@ -95,6 +95,9 @@ awesome_atexit(void)
|
||||||
xcb_flush(globalconf.connection);
|
xcb_flush(globalconf.connection);
|
||||||
|
|
||||||
xcb_disconnect(globalconf.connection);
|
xcb_disconnect(globalconf.connection);
|
||||||
|
|
||||||
|
/* Close Lua */
|
||||||
|
lua_close(globalconf.L);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Scan X to find windows to manage.
|
/** Scan X to find windows to manage.
|
||||||
|
@ -571,9 +574,6 @@ main(int argc, char **argv)
|
||||||
ev_ref(globalconf.loop);
|
ev_ref(globalconf.loop);
|
||||||
ev_io_stop(globalconf.loop, &xio);
|
ev_io_stop(globalconf.loop, &xio);
|
||||||
|
|
||||||
/* Close Lua */
|
|
||||||
lua_close(globalconf.L);
|
|
||||||
|
|
||||||
awesome_atexit();
|
awesome_atexit();
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue