summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-04-13 12:01:18 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-04-13 12:01:18 -0400
commit84b76c72c8afed48dacf4216483cb911913e779a (patch)
treea1ddf02c5b270f29ca0d00450244e04519b27933 /clients
parent011abc8ac652b114f03917bc2bf552475ebcb75e (diff)
window: Initialize redraw_task.link so we can always remove it
Diffstat (limited to 'clients')
-rw-r--r--clients/window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clients/window.c b/clients/window.c
index 62f9926..ad0b710 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -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);