From 297744f9f20ef0ac2622f0af052f91ff314d7f8d Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Tue, 22 Mar 2022 20:09:25 +0900 Subject: [PATCH] e_comp_wl: remove the unused surface signals Change-Id: I7f0a40411a4de6427b0c922b9f1bde4f3f72b875 --- src/bin/e_comp_wl.c | 19 ------------------- src/bin/e_comp_wl.h | 25 ------------------------- 2 files changed, 44 deletions(-) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 8841618..7d3790d 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -3316,9 +3316,6 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso 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(); } @@ -4187,11 +4184,6 @@ _e_comp_wl_compositor_create(void) /* 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; */ @@ -4358,17 +4350,6 @@ e_comp_wl_deferred_job(void) 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) diff --git a/src/bin/e_comp_wl.h b/src/bin/e_comp_wl.h index 27676a4..909ffee 100644 --- a/src/bin/e_comp_wl.h +++ b/src/bin/e_comp_wl.h @@ -205,30 +205,6 @@ struct _E_Comp_Wl_Data 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; @@ -570,7 +546,6 @@ E_API Eina_Bool e_comp_wl_surface_commit(E_Client *ec); 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); -- 2.7.4