Recomposite screen in idle handler.

This commit is contained in:
Kristian Høgsberg 2008-10-11 19:21:35 -04:00
parent f921289954
commit 5ebb317383
5 changed files with 61 additions and 15 deletions

View file

@ -141,11 +141,11 @@ int main(int argc, char *argv[])
cairo_image_surface_get_stride(s));
i = 0;
while (ret = poll(p, 1, 200), ret >= 0) {
while (ret = poll(p, 1, 20), ret >= 0) {
if (ret == 0) {
wl_surface_map(surface,
x + cos(i / 10.0) * 150,
y + sin(i / 10.0) * 150,
x + cos(i / 10.0) * 200,
y + sin(i / 11.0) * 200,
width, height);
i++;
continue;