From c668926e6e4ba382205448ee85adb176427c3286 Mon Sep 17 00:00:00 2001 From: David Hill Date: Thu, 12 Jul 2012 22:47:04 -0400 Subject: [PATCH 1/1] XCloseDisplay no longer needed --- spectrwm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/spectrwm.c b/spectrwm.c index 9e35632..933ed3d 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -2305,7 +2305,6 @@ restart(struct swm_region *r, union arg *args) bar_extra_stop(); bar_extra = 1; unmap_all(); - XCloseDisplay(display); execvp(start_argv[0], start_argv); warn("execvp failed"); quit(NULL, NULL); @@ -7968,7 +7967,6 @@ done: xcb_free_gc(conn, screens[i].bar_gc); XFreeFontSet(display, bar_fs); xcb_disconnect(conn); - XCloseDisplay(display); return (0); } -- 1.7.10.4