fix warning valgrind and use infinite loop
This commit is contained in:
parent
e97e5f5009
commit
b8abbfc5a6
|
@ -65,7 +65,7 @@ int listen(FILE *file)
|
|||
|
||||
pthread_cleanup_push(cancel_read_events, init_args_read(fd, user_event, display));
|
||||
|
||||
while (!(left && right))
|
||||
while (1)
|
||||
{
|
||||
/* Read Mouse */
|
||||
bytes = read(fd, data, sizeof(data));
|
||||
|
|
Loading…
Reference in a new issue