lua: remap on restart
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
7b3029c722
commit
38c48cf374
8
lua.c
8
lua.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue