forked from enlightenment/enlightenment
move wayland surface E_Client del check to a place where it's more useful
completely breaks wayland on first commit? off to an auspicious start!
ref d9679f765f
This commit is contained in:
parent
90b1bf63b7
commit
2c1e864fbc
|
@ -1567,8 +1567,6 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso
|
|||
|
||||
DBG("Compositor Cb Surface Create: %d", id);
|
||||
|
||||
if (e_object_is_del(E_OBJECT(ec))) return;
|
||||
|
||||
/* try to create an internal surface */
|
||||
if (!(res = wl_resource_create(client, &wl_surface_interface,
|
||||
wl_resource_get_version(resource), id)))
|
||||
|
@ -1587,7 +1585,11 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso
|
|||
wl_client_get_credentials(client, &pid, NULL, NULL);
|
||||
if (pid == getpid()) //internal!
|
||||
ec = e_pixmap_find_client(E_PIXMAP_TYPE_WL, (uintptr_t)id);
|
||||
if (!ec)
|
||||
if (ec)
|
||||
{
|
||||
if (e_object_is_del(E_OBJECT(ec))) return;
|
||||
}
|
||||
else
|
||||
{
|
||||
E_Pixmap *ep = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue