remove E_Comp usage from wl desktop shell

This commit is contained in:
Mike Blumenkrantz 2015-03-18 17:34:16 -04:00
parent eb029f94f7
commit 2810a4802a
1 changed files with 3 additions and 4 deletions

View File

@ -1450,17 +1450,16 @@ EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Wl_Desktop_Shell" };
EAPI void *
e_modapi_init(E_Module *m)
{
E_Comp *comp;
E_Comp_Data *cdata;
/* try to get the current compositor */
if (!(comp = e_comp)) return NULL;
if (!e_comp) return NULL;
/* make sure it's a wayland compositor */
/* if (comp->comp_type != E_PIXMAP_TYPE_WL) return NULL; */
/* if (e_comp->comp_type != E_PIXMAP_TYPE_WL) return NULL; */
/* try to get the compositor data */
if (!(cdata = comp->wl_comp_data)) return NULL;
if (!(cdata = e_comp->wl_comp_data)) return NULL;
/* try to create global shell interface */
if (!wl_global_create(cdata->wl.disp, &wl_shell_interface, 1,