Skip to content

Commit

Permalink
Put fd_set(x11_fd back after fd_zero
Browse files Browse the repository at this point in the history
  • Loading branch information
moetunes committed Jun 26, 2012
1 parent 186675e commit 0bca0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion some_sorta_bar.c
Expand Up @@ -290,9 +290,9 @@ int main(int argc, char ** argv){
XMapRaised(dis, barwin);
first_run = 0;
int x11_fd = ConnectionNumber(dis);
FD_SET(x11_fd, &readfds);
while(1){
FD_ZERO(&readfds);
FD_SET(x11_fd, &readfds);
FD_SET(STDIN_FILENO, &readfds);
tv.tv_sec = 0;
tv.tv_usec = 200000;
Expand Down

1 comment on commit 0bca0d5

@moetunes
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just a local change.

Please sign in to comment.