This allows something that only has the Ecore_Wl2_Window (ie: something
that isn't engine code) to force dropping of all the buffers.
This should be safe to call at any time as the buffer handling logic
will properly cleanup the buffers when async render is done with them
or the compositor releases them.
This will eventually be used when a wayland client receives a
wl_output.leave events to indicate it isn't displayed on any outputs.
EAPI int ecore_wl2_surface_assign(Ecore_Wl2_Surface *surface);
EAPI void ecore_wl2_surface_post(Ecore_Wl2_Surface *surface, Eina_Rectangle *rects, unsigned int count);
EAPI void ecore_wl2_surface_flush(Ecore_Wl2_Surface *surface);
+EAPI void ecore_wl2_window_surface_flush(Ecore_Wl2_Window *window);
# endif
else
damage(window->surface, 0, 0, INT_MAX, INT_MAX);
}
+
+EAPI void
+ecore_wl2_window_surface_flush(Ecore_Wl2_Window *window)
+{
+ EINA_SAFETY_ON_NULL_RETURN(window);
+
+ if (!window->wl2_surface) return;
+ ecore_wl2_surface_flush(window->wl2_surface);
+}