Handle all events, not only one
This commit is contained in:
parent
3e6eb120ed
commit
858bcd4947
1 changed files with 4 additions and 8 deletions
|
@ -121,17 +121,13 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
if (FD_ISSET(g_dpy_fd, &file_descriptors)) {
|
||||
xcb_generic_event_t *event = xcb_poll_for_event(g_dpy);
|
||||
|
||||
if (!event) {
|
||||
continue;
|
||||
}
|
||||
|
||||
xcb_generic_event_t *event;
|
||||
while ((event= xcb_poll_for_event(g_dpy))) {
|
||||
handle_xcb_event(event);
|
||||
|
||||
free(event);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
free(g_config_path);
|
||||
close(g_sock_fd);
|
||||
|
|
Loading…
Add table
Reference in a new issue