summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_wl2/Ecore_Wl2.h1
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c9
2 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index a348357b25..97f53d5ab8 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -2004,6 +2004,7 @@ EAPI void *ecore_wl2_surface_data_get(Ecore_Wl2_Surface *surface, int *w, int *h
2004EAPI int ecore_wl2_surface_assign(Ecore_Wl2_Surface *surface); 2004EAPI int ecore_wl2_surface_assign(Ecore_Wl2_Surface *surface);
2005EAPI void ecore_wl2_surface_post(Ecore_Wl2_Surface *surface, Eina_Rectangle *rects, unsigned int count); 2005EAPI void ecore_wl2_surface_post(Ecore_Wl2_Surface *surface, Eina_Rectangle *rects, unsigned int count);
2006EAPI void ecore_wl2_surface_flush(Ecore_Wl2_Surface *surface); 2006EAPI void ecore_wl2_surface_flush(Ecore_Wl2_Surface *surface);
2007EAPI void ecore_wl2_window_surface_flush(Ecore_Wl2_Window *window);
2007 2008
2008# endif 2009# endif
2009 2010
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index b23fb252b6..8f6a579a4a 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -1643,3 +1643,12 @@ ecore_wl2_window_damage(Ecore_Wl2_Window *window, Eina_Rectangle *rects, unsigne
1643 else 1643 else
1644 damage(window->surface, 0, 0, INT_MAX, INT_MAX); 1644 damage(window->surface, 0, 0, INT_MAX, INT_MAX);
1645} 1645}
1646
1647EAPI void
1648ecore_wl2_window_surface_flush(Ecore_Wl2_Window *window)
1649{
1650 EINA_SAFETY_ON_NULL_RETURN(window);
1651
1652 if (!window->wl2_surface) return;
1653 ecore_wl2_surface_flush(window->wl2_surface);
1654}