mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 22:48:14 +02:00
window: Initialize redraw_task.link so we can always remove it
This commit is contained in:
parent
011abc8ac6
commit
84b76c72c8
1 changed files with 2 additions and 0 deletions
|
|
@ -2034,6 +2034,7 @@ idle_redraw(struct task *task, uint32_t events)
|
|||
widget_redraw(window->widget);
|
||||
window_flush(window);
|
||||
window->redraw_needed = 0;
|
||||
wl_list_init(&window->redraw_task.link);
|
||||
|
||||
callback = wl_surface_frame(window->surface);
|
||||
wl_callback_add_listener(callback, &listener, window);
|
||||
|
|
@ -2206,6 +2207,7 @@ window_create_internal(struct display *display, struct window *parent)
|
|||
|
||||
wl_surface_set_user_data(window->surface, window);
|
||||
wl_list_insert(display->window_list.prev, &window->link);
|
||||
wl_list_init(&window->redraw_task.link);
|
||||
|
||||
if (window->shell_surface) {
|
||||
wl_shell_surface_set_user_data(window->shell_surface, window);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue