aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-02-26 11:11:11 -0500
committerChris Michael <cp.michael@samsung.com>2015-02-26 11:11:11 -0500
commit21e88a4e0b85171bd36f22f4c8045d91d0a0958a (patch)
tree5eda863100d6185bd0ace77d5d831dda71064b79
parentfix compile issues (diff)
downloadenlightenment-devs/devilhorns/wl_buffer.tar.gz
send frame_done callback when pixmap_image_clear is calleddevs/devilhorns/wl_buffer
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/bin/e_pixmap.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c
index 9c75e09d5..dbefc9971 100644
--- a/src/bin/e_pixmap.c
+++ b/src/bin/e_pixmap.c
@@ -632,6 +632,19 @@ e_pixmap_image_clear(E_Pixmap *cp, Eina_Bool cache)
break;
case E_PIXMAP_TYPE_WL:
#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
+ if (cache)
+ {
+ E_Comp_Wl_Client_Data *cd;
+ struct wl_resource *cb;
+
+ if ((!cp->client) || (!cp->client->comp_data)) return;
+ cd = (E_Comp_Wl_Client_Data *)cp->client->comp_data;
+ EINA_LIST_FREE(cd->frames, cb)
+ {
+ wl_callback_send_done(cb, ecore_time_unix_get());
+ wl_resource_destroy(cb);
+ }
+ }
#endif
break;
default: