From 4617f0ba34a49598cc230e8e083719d4e2bd1503 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Tue, 17 Jun 2008 23:13:08 +0200 Subject: [PATCH] The X socket MUST keep us alive. We must not unref the loop for the X socket, that's our reason to live ! Signed-off-by: Pierre Habouzit --- awesome.c | 1 - 1 file changed, 1 deletion(-) diff --git a/awesome.c b/awesome.c index 5659a198..2561d2f6 100644 --- a/awesome.c +++ b/awesome.c @@ -367,7 +367,6 @@ main(int argc, char **argv) xfd = xcb_get_file_descriptor(globalconf.connection); ev_io_init(&xio, &a_xcb_io_cb, xfd, EV_READ); ev_io_start(globalconf.loop, &xio); - ev_unref(globalconf.loop); ev_check_init(&xcheck, &a_xcb_check_cb); ev_check_start(globalconf.loop, &xcheck); ev_unref(globalconf.loop);