/* find the client for this pixmap */
ec = e_pixmap_client_get(ep);
- if (!ec)
+ if (ec) e_pixmap_ref(ec->pixmap);
+ if (!(ec = e_client_new(NULL, ep, 0, 1)))
{
- /* no client found. not internal window. maybe external client app ? */
- if (!(ec = e_client_new(NULL, ep, 0, 0)))
- {
- wl_resource_post_error(surface_resource,
- WL_DISPLAY_ERROR_INVALID_OBJECT,
- "No Client For Pixmap");
- return;
- }
-
- ec->netwm.ping = EINA_TRUE;
+ wl_resource_post_error(surface_resource,
+ WL_DISPLAY_ERROR_INVALID_OBJECT,
+ "No Client For Pixmap");
+ return;
}
+ ec->netwm.ping = EINA_TRUE;
/* get the client data */
if (!(cdata = ec->comp_data))
/* find the client for this pixmap */
ec = e_pixmap_client_get(ep);
- if (!ec)
+ if (ec) e_pixmap_ref(ec->pixmap);
+ if (!(ec = e_client_new(NULL, ep, 0, 1)))
{
- /* no client found. not internal window. maybe external client app ? */
- if (!(ec = e_client_new(NULL, ep, 0, 0)))
- {
- wl_resource_post_error(surface_resource,
- WL_DISPLAY_ERROR_INVALID_OBJECT,
- "No Client For Pixmap");
- return;
- }
+ wl_resource_post_error(surface_resource,
+ WL_DISPLAY_ERROR_INVALID_OBJECT,
+ "No Client For Pixmap");
+ return;
}
ec->netwm.ping = EINA_TRUE;
/* find the client for this pixmap */
ec = e_pixmap_client_get(ep);
- if (!ec)
+ if (ec) e_pixmap_ref(ec->pixmap);
+ if (!(ec = e_client_new(NULL, ep, 0, 1)))
{
- /* no client found. create one */
- if (!(ec = e_client_new(NULL, ep, 0, 1)))
- {
- wl_resource_post_error(surface_resource,
- WL_DISPLAY_ERROR_INVALID_OBJECT,
- "No Client For Pixmap");
- return;
- }
-
- /* e_pixmap_ref(ep); */
+ wl_resource_post_error(surface_resource,
+ WL_DISPLAY_ERROR_INVALID_OBJECT,
+ "No Client For Pixmap");
+ return;
}
/* get the client data */