#include "e_view_rect.h"
#include "e_view_intern.h"
#include "e_view_client_intern.h"
+#include "e_compositor_intern.h"
#define PRI(ec) ((E_Client_Private *)e_object_data_get(E_OBJECT(ec)))
{
EINA_SAFETY_ON_NULL_RETURN_VAL(surface_resource, NULL);
- return e_comp_wl_util_client_from_surface_resource(surface_resource);
+ return e_surface_ec_get(e_surface_from_resource(surface_resource));
}
EINTERN void
g_mutex_unlock(&ec->comp_data->surface_mutex);
}
-EINTERN E_Client *
-e_comp_wl_util_client_from_surface_resource(struct wl_resource *surface_resource)
-{
- return e_compositor_util_client_from_surface_resource(surface_resource);
-}
-
EINTERN void
e_comp_wl_client_surface_pending_buffer_set(E_Client *ec, E_Comp_Wl_Buffer *buffer, int32_t sx, int32_t sy)
{
return EINA_TRUE;
}
-EINTERN E_Client *
-e_compositor_util_client_from_surface_resource(struct wl_resource *surface_resource)
-{
- E_Surface *surface;
- struct ds_surface *ds_surface;
-
- ds_surface = ds_surface_from_resource(surface_resource);
- if (!ds_surface)
- return NULL;
-
- surface = _e_surface_from_ds_surface(ds_surface);
-
- return surface->ec;
-}
-
EINTERN Eina_Bool
e_comp_wl_subsurface_add(struct wl_resource *resource, uint32_t id, struct wl_resource *surface_resource, struct wl_resource *parent_resource)
{
typedef struct _E_Subsurface E_Subsurface;
EINTERN Eina_Bool e_compositor_init(struct wl_display *display);
-EINTERN E_Client *e_compositor_util_client_from_surface_resource(struct wl_resource *surface_resource);
EINTERN E_Surface *e_surface_from_resource(struct wl_resource *surface_resource);
EINTERN void e_surface_destroy_listener_add(E_Surface *surface, struct wl_listener *listener);