Eina_List *configure_list; /* list of data being appended whenever configure send and remove by ack_configure */
Ecore_Idle_Enterer *configure_idle; /* Idle_Enterer for sending configure */
- E_Comp_Hook *commit_handler; /* Handler raised when wl_surface is committed. */
+ E_Comp_Wl_Hook *commit_hook; /* Handler raised when wl_surface is committed. */
E_Xdg_Surface_Role role;
Eina_Rectangle configured_geometry; /* configured geometry by compositor */
_e_xdg_surface_cb_configure_ack
};
-static Eina_Bool
+static void
_e_xdg_surface_cb_commit(void *data, E_Client *ec)
{
E_Xdg_Surface *exsurf;
exsurf = (E_Xdg_Surface *)data;
if (exsurf->ec != ec)
- goto end;
+ return;
if (!exsurf->wait_next_commit)
- goto end;
+ return;
LOG("Wl_Surface Commit, Update Xdg_Surface state %s",
exsurf->ec,
_e_xdg_popup_committed((E_Xdg_Popup *)exsurf);
break;
}
-
-end:
- return ECORE_CALLBACK_PASS_ON;
}
static void
E_FREE_LIST(exsurf->configure_list, free);
if (exsurf->configure_idle)
ecore_idle_enterer_del(exsurf->configure_idle);
- if (exsurf->commit_handler)
- e_comp_wl_hook_del(exsurf->commit_handler);
+ if (exsurf->commit_hook)
+ e_comp_wl_hook_del(exsurf->commit_hook);
}
static void
exsurf->shell = shell;
exsurf->ec = ec;
exsurf->configured = EINA_FALSE;
- exsurf->commit_handler =
+ exsurf->commit_hook =
e_comp_wl_hook_add(E_COMP_WL_HOOK_CLIENT_SURFACE_COMMIT,
_e_xdg_surface_cb_commit,
exsurf);