mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-01 07:16:07 -04:00
Set window user data using separate function
This commit is contained in:
parent
dcb71b62a0
commit
c8c3734ef9
7 changed files with 42 additions and 35 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue