e_comp_wl: Send and destroy frame event that was created for previous commit 39/78039/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Fri, 1 Jul 2016 12:24:58 +0000 (21:24 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Mon, 4 Jul 2016 05:00:23 +0000 (14:00 +0900)
Change-Id: If884c09c6c1b958dfa1f2bc74c0c3e5e9b2cf000

src/bin/e_comp_wl.c

index 1438823dee843c28e9746950b3cef49d54cf4e8e..3379a9be7b049134084f5da59da9729b5088c5d5 100644 (file)
@@ -2228,6 +2228,8 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
    int x = 0, y = 0;
    E_Comp_Wl_Buffer *buffer;
    E_Comp_Wl_Subsurf_Data *sdata;
+   struct wl_resource *cb;
+   Eina_List *l, *ll;
 
    first = !e_pixmap_usable_get(ec->pixmap);
 
@@ -2381,6 +2383,12 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
    state->sy = 0;
    state->new_attach = EINA_FALSE;
 
+   EINA_LIST_FOREACH_SAFE(ec->comp_data->frames, l, ll, cb)
+     {
+         wl_callback_send_done(cb, ecore_time_unix_get() * 1000);
+         wl_resource_destroy(cb);
+     }
+
    /* insert state frame callbacks into comp_data->frames
     * NB: This clears state->frames list */
    ec->comp_data->frames = eina_list_merge(ec->comp_data->frames,