Set window user data using separate function

This commit is contained in:
Kristian Høgsberg 2010-06-25 11:19:22 -04:00
parent dcb71b62a0
commit c8c3734ef9
7 changed files with 42 additions and 35 deletions

View file

@ -141,7 +141,8 @@ int main(int argc, char *argv[])
draw_stuff(s, flower.width, flower.height);
cairo_surface_flush(s);
window_set_frame_handler(flower.window, handle_frame, &flower);
window_set_user_data(flower.window, &flower);
window_set_frame_handler(flower.window, handle_frame);
window_commit(flower.window, 0);
display_run(d);