From: Michael Stapelberg Date: Fri, 29 Jun 2012 21:13:25 +0000 (+0200) Subject: Explicitly disconnect in the 'exit' command X-Git-Tag: 4.3~196 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c5d047215865fad385f4f91798e3e3bd3959ebea;p=i3%2Fi3 Explicitly disconnect in the 'exit' command This fixes a race condition when running the tests. I think that the X11 server has more time to clean up the resources when we do an explicit disconnect. The symptom I was seeing was that sometimes, i3 couldn’t become the window manager on one of the Xdummy instances. --- diff --git a/src/commands.c b/src/commands.c index 6f0d0c5e..f30d6612 100644 --- a/src/commands.c +++ b/src/commands.c @@ -1410,6 +1410,7 @@ void cmd_layout(I3_CMD, char *layout_str) { */ void cmd_exit(I3_CMD) { LOG("Exiting due to user command.\n"); + xcb_disconnect(conn); exit(0); /* unreached */