diff -ru libxcb-1.7~/src/xcb_conn.c libxcb-1.7/src/xcb_conn.c --- libxcb-1.7~/src/xcb_conn.c 2010-08-13 07:43:31.000000000 -0400 +++ libxcb-1.7/src/xcb_conn.c 2011-06-06 13:43:13.000000000 -0400 @@ -325,14 +325,14 @@ if(ret) { #if USE_POLL - if((fd.revents & POLLIN) == POLLIN) + if((fd.revents & POLLIN) != 0) #else if(FD_ISSET(c->fd, &rfds)) #endif ret = ret && _xcb_in_read(c); #if USE_POLL - if((fd.revents & POLLOUT) == POLLOUT) + if((fd.revents & POLLOUT) != 0) #else if(FD_ISSET(c->fd, &wfds)) #endif