Properly die when the X server dies

When the X connection breaks for whatever reason, awesome wouldn't properly
exit, but go into a busy loop instead. Fix this by dying when our connection to
the X server dies.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-11-13 22:29:05 +01:00
parent d303957d01
commit 03010ca5c2
1 changed files with 4 additions and 1 deletions

View File

@ -224,7 +224,10 @@ a_xcb_check_cb(EV_P_ ev_check *w, int revents)
static void
a_xcb_io_cb(EV_P_ ev_io *w, int revents)
{
/* empty */
/* a_xcb_check_cb() already handled all events */
if(xcb_connection_has_error(globalconf.connection))
fatal("X server connection broke");
}
static void