yes you need this xflush before sleeping into select...
This commit is contained in:
Cedric Roux
2016-03-18 15:13:21 +01:00
parent b168a283a6
commit 26a5da6cef
+2
View File
@@ -118,6 +118,8 @@ static void *plot_thread(void *_p)
0, 0, p->width, p->height, 0, 0);
}
XFlush(p->d);
FD_ZERO(&rset);
FD_SET(p->timer_pipe[0], &rset);
FD_SET(xfd, &rset);