summaryrefslogtreecommitdiff
path: root/clients/gears.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-04-11 16:47:50 -0400
committerKristian Høgsberg <krh@bitplanet.net>2011-04-11 16:47:50 -0400
commit11e2828bdcf3ec4d59482a35fb510c51cc26acf6 (patch)
treec5dfb56f016b350f0a3e757701563c71240fc7de /clients/gears.c
parent3555d09813cfe97ad2170bbb58655f7bb2aae7b0 (diff)
parentec4d342aa9b536c71bcf0d75249549860941793b (diff)
downloadweston-11e2828bdcf3ec4d59482a35fb510c51cc26acf6.tar.gz
Merge remote-tracking branch 'bnf/surface-frame-event'
Conflicts: compositor/compositor.c
Diffstat (limited to 'clients/gears.c')
-rw-r--r--clients/gears.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/clients/gears.c b/clients/gears.c
index fb5e1176..3aaf8bba 100644
--- a/clients/gears.c
+++ b/clients/gears.c
@@ -295,7 +295,7 @@ redraw_handler(struct window *window, void *data)
}
static void
-frame_callback(void *data, uint32_t time)
+frame_callback(struct wl_surface *surface, void *data, uint32_t time)
{
struct gears *gears = data;
@@ -303,6 +303,7 @@ frame_callback(void *data, uint32_t time)
window_schedule_redraw(gears->window);
wl_display_frame_callback(display_get_display(gears->d),
+ window_get_wl_surface(gears->window),
frame_callback, gears);
}
@@ -363,6 +364,7 @@ gears_create(struct display *display)
draw_gears(gears);
wl_display_frame_callback(display_get_display(gears->d),
+ window_get_wl_surface(gears->window),
frame_callback, gears);
return gears;