Fixed that select wouldn't consider xcb events

This commit is contained in:
buffet 2018-11-07 22:56:57 +01:00
parent a90bab94fb
commit 15384083a0

View file

@ -103,7 +103,9 @@ main(int argc, char *argv[])
FD_SET(g_sock_fd, &file_descriptors); FD_SET(g_sock_fd, &file_descriptors);
FD_SET(g_dpy_fd, &file_descriptors); FD_SET(g_dpy_fd, &file_descriptors);
select(max_fd, &file_descriptors, NULL, NULL, NULL); if (!(select(max_fd, &file_descriptors, NULL, NULL, NULL) > 0)) {
continue;
}
if (FD_ISSET(g_sock_fd, &file_descriptors)) { if (FD_ISSET(g_sock_fd, &file_descriptors)) {
int client_fd; int client_fd;