From 32b97745ecac6b98a1da8b65a13e46cb9c2ef9e8 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 15 Oct 2011 16:56:32 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20call=20ev=5Fdestroy=5Floop=20wit?= =?utf8?q?h=20ev=20<=204=20in=20atexit=20(Thanks=20xeen)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.c b/src/main.c index 610a2c19..ffdc1fd3 100644 --- a/src/main.c +++ b/src/main.c @@ -181,7 +181,12 @@ static void xkb_got_event(EV_P_ struct ev_io *w, int revents) { * */ static void i3_exit() { +/* We need ev >= 4 for the following code. Since it is not *that* important (it + * only makes sure that there are no i3-nagbar instances left behind) we still + * support old systems with libev 3. */ +#if EV_VERSION_MAJOR >= 4 ev_loop_destroy(main_loop); +#endif } int main(int argc, char *argv[]) { -- 2.39.5