summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-10-11 19:21:35 -0400
committerKristian Høgsberg <krh@redhat.com>2008-11-06 10:51:58 -0500
commit5ebb317383b9863ca7da037a7348ab3ee4f9f34c (patch)
tree369de5255ebc7cc23e283f9c489144cab4a14ba0 /client.c
parentf921289954840063722c8e3d541c5089b34a082a (diff)
downloadwayland-5ebb317383b9863ca7da037a7348ab3ee4f9f34c.tar.gz
wayland-5ebb317383b9863ca7da037a7348ab3ee4f9f34c.tar.xz
wayland-5ebb317383b9863ca7da037a7348ab3ee4f9f34c.zip
Recomposite screen in idle handler.
Diffstat (limited to 'client.c')
-rw-r--r--client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/client.c b/client.c
index 2fb1484..87df3b7 100644
--- a/client.c
+++ b/client.c
@@ -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;