check if client is getting destroyed before we try to unmap it.

NB: This is done for wayland clients where e_client delete function
has already freed the client wl_comp_data Before we get a shell
surface destroy message from wayland. (occurs due to async nature).

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-06-23 12:57:19 -04:00
parent 5b581d88c3
commit 581975d255
1 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,8 @@ _e_shell_surface_cb_destroy(struct wl_resource *resource)
/* get the client for this resource */
if ((ec = wl_resource_get_user_data(resource)))
{
if (e_object_is_del(E_OBJECT(ec))) return;
if (ec->wl_comp_data)
{
if (ec->wl_comp_data->mapped)