}
static void
-_e_input_panel_surface_cb_toplevel_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *output_resource EINA_UNUSED, uint32_t position EINA_UNUSED)
+append_input_panel_surface(struct wl_resource *resource)
{
E_Input_Panel_Surface *ips = wl_resource_get_user_data(resource);
E_Input_Panel *input_panel = NULL;
}
static void
-_e_input_panel_surface_cb_overlay_panel_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
+_e_input_panel_surface_cb_toplevel_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *output_resource EINA_UNUSED, uint32_t position EINA_UNUSED)
{
- E_Input_Panel_Surface *ips = wl_resource_get_user_data(resource);
- E_Input_Panel *input_panel = NULL;
-
- CHECK_INPUT_PANEL_SURFACE(ips);
-
- if (!(input_panel = ips->input_panel)) return;
+ append_input_panel_surface(resource);
+}
- /* Do not append duplicated surface - And need to check if the surface really needs to be appended here,
- * since the newly created surface is already being appended at function _e_input_panel_cb_surface_get() */
- if (eina_list_data_find(input_panel->surfaces, ips) != ips)
- {
- _e_input_panel_surface_append(input_panel, ips, resource);
- }
- ips->panel = EINA_TRUE;
+static void
+_e_input_panel_surface_cb_overlay_panel_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
+{
+ append_input_panel_surface(resource);
}
static void