mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05: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
|
|
@ -223,8 +223,9 @@ image_create(struct display *display, uint32_t key, const char *filename)
|
|||
* allocation scheme here. Or maybe just a real toolkit. */
|
||||
image->key = key + 100;
|
||||
|
||||
window_set_redraw_handler(image->window, redraw_handler, image);
|
||||
window_set_keyboard_focus_handler(image->window, keyboard_focus_handler, image);
|
||||
window_set_user_data(image->window, image);
|
||||
window_set_redraw_handler(image->window, redraw_handler);
|
||||
window_set_keyboard_focus_handler(image->window, keyboard_focus_handler);
|
||||
|
||||
image_draw(image);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue