From 38c48cf374a149a49d360cf9985ccf1fe8acb463 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 24 Jun 2008 17:38:55 +0200 Subject: [PATCH] lua: remap on restart Signed-off-by: Julien Danjou --- lua.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua.c b/lua.c index c41e91bd..36de23aa 100644 --- a/lua.c +++ b/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; }