From c5d047215865fad385f4f91798e3e3bd3959ebea Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 29 Jun 2012 23:13:25 +0200 Subject: [PATCH] Explicitly disconnect in the 'exit' command MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. --- src/commands.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- 2.39.5