DBG("\tUsing Client: %p", ec);
wl_resource_set_user_data(res, ec);
- /* emit surface create signal */
- wl_signal_emit(&e_comp_wl->signals.surface.create, res);
-
TRACE_DS_END();
}
/* set wayland display environment variable */
e_env_set("WAYLAND_DISPLAY", name);
- /* initialize compositor signals */
- wl_signal_init(&wl_cdata->signals.surface.create);
- wl_signal_init(&wl_cdata->signals.surface.activate);
- wl_signal_init(&wl_cdata->signals.surface.kill);
-
/* wl_cdata->output.transform = WL_OUTPUT_TRANSFORM_NORMAL; */
/* wl_cdata->output.scale = e_scale; */
ecore_idle_enterer_add(_e_comp_wl_gl_idle, NULL);
}
-/**
- * Get the signal that is fired for the creation of a Wayland surface.
- *
- * @returns the corresponding Wayland signal
- */
-EINTERN struct wl_signal
-e_comp_wl_surface_create_signal_get(void)
-{
- return e_comp_wl->signals.surface.create;
-}
-
/* internal functions */
EINTERN void
e_comp_wl_shutdown(void)
struct
{
- struct
- {
- struct wl_signal create;
- struct wl_signal activate;
- struct wl_signal kill;
- } surface;
- /* NB: At the moment, we don't need these */
- /* struct wl_signal destroy; */
- /* struct wl_signal activate; */
- /* struct wl_signal transform; */
- /* struct wl_signal kill; */
- /* struct wl_signal idle; */
- /* struct wl_signal wake; */
- /* struct wl_signal session; */
- /* struct */
- /* { */
- /* struct wl_signal created; */
- /* struct wl_signal destroyed; */
- /* struct wl_signal moved; */
- /* } seat, output; */
- } signals;
-
- struct
- {
Eina_List *resources;
Eina_List *focused;
Eina_Bool enabled : 1;
E_API void e_comp_wl_buffer_reference(E_Comp_Wl_Buffer_Ref *ref, E_Comp_Wl_Buffer *buffer);
EINTERN E_Comp_Wl_Buffer *e_comp_wl_buffer_get(struct wl_resource *resource, E_Client *ec);
-EINTERN struct wl_signal e_comp_wl_surface_create_signal_get(void);
E_API Eina_Bool e_comp_wl_output_init(const char *id, const char *make, const char *model, int x, int y, int w, int h, int pw, int ph, unsigned int refresh, unsigned int subpixel, unsigned int transform);
E_API void e_comp_wl_output_remove(const char *id);