X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb_in.c;h=2997de4c43f24e88128c6258f6fcd570ad525709;hb=40566c36d543edc2118cbb358e0303d9e8862892;hp=1cb6b69de7db2f7d74200a2f48fd97b945e9d600;hpb=e0fac22caaf27b3e461807f8c563d0457938baa6;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb_in.c b/src/xcb_in.c index 1cb6b69..2997de4 100644 --- a/src/xcb_in.c +++ b/src/xcb_in.c @@ -403,7 +403,8 @@ xcb_generic_event_t *xcb_poll_for_event(xcb_connection_t *c) { _xcb_lock_io(c); /* FIXME: follow X meets Z architecture changes. */ - if(_xcb_in_read(c)) /* _xcb_in_read shuts down the connection on error */ + ret = get_event(c); + if(!ret && _xcb_in_read(c)) /* _xcb_in_read shuts down the connection on error */ ret = get_event(c); _xcb_unlock_io(c); }