xfreerdp: fix XInitThreads() usage

This commit is contained in:
Marc-André Moreau 2013-02-11 11:40:35 -05:00
parent 51a51ccd38
commit a07b3391ce
2 changed files with 5 additions and 3 deletions

View File

@ -969,5 +969,7 @@ BOOL xf_event_process(freerdp* instance, XEvent* event)
break;
}
XSync(xfi->display, FALSE);
return status;
}

View File

@ -667,7 +667,7 @@ BOOL xf_pre_connect(freerdp* instance)
return TRUE;
}
xfi->UseXThreads = FALSE;
xfi->UseXThreads = TRUE;
if (xfi->UseXThreads)
{
@ -1178,8 +1178,8 @@ void* xf_input_thread(void* arg)
break;
}
printf("Closed from X\n");
xfi->disconnect = TRUE;
printf("Closed from X\n");
return NULL;
}
@ -1348,7 +1348,7 @@ int xfreerdp_run(freerdp* instance)
timeout.tv_sec = 0;
timeout.tv_usec = 100;
select_status = select(max_fds + 1, &rfds_set, &wfds_set, NULL, &timeout);
select_status = select(max_fds + 1, &rfds_set, &wfds_set, NULL, NULL);
if (select_status == 0)
{