Skip to content
Browse files

Put fd_set(x11_fd back after fd_zero

  • Loading branch information...
1 parent 186675e commit 0bca0d51a8edf5d20ec97d5f16b36f3400549468 @moetunes committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 some_sorta_bar.c
View
2 some_sorta_bar.c
@@ -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;

1 comment on commit 0bca0d5

@moetunes
Owner

This was just a local change.

Please sign in to comment.
Something went wrong with that request. Please try again.