lua: remap on restart

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-24 17:38:55 +02:00
parent 7b3029c722
commit 38c48cf374
1 changed files with 8 additions and 0 deletions

8
lua.c
View File

@ -123,6 +123,14 @@ luaA_exec(lua_State *L)
static int
luaA_restart(lua_State *L __attribute__ ((unused)))
{
client_t *c;
for(c = globalconf.clients; c; c = c->next)
client_unban(c);
xcb_aux_sync(globalconf.connection);
xcb_disconnect(globalconf.connection);
a_exec(globalconf.argv);
return 0;
}