only apply xdg-shell client del hooks to internal clients

ref 8173c06c4d
This commit is contained in:
Mike Blumenkrantz 2017-03-22 16:15:15 -04:00
parent ad15822f27
commit 7e05eff3e3
2 changed files with 4 additions and 3 deletions

View File

@ -895,8 +895,8 @@ _xdg5_client_hook_del(void *d EINA_UNUSED, E_Client *ec)
if (e_pixmap_type_get(ec->pixmap) != E_PIXMAP_TYPE_WL) return;
shd = ec->comp_data->shell.data;
if (shd && (shd->version != 5)) return;
if (ec->comp_data->shell.surface)
if (shd && (shd->version != 5)) return;
if (ec->internal && ec->comp_data->shell.surface)
wl_resource_destroy(ec->comp_data->shell.surface);
}

View File

@ -1444,7 +1444,8 @@ _e_xdg_shell_cb_bind(struct wl_client *client, void *data EINA_UNUSED, uint32_t
static void
_xdg6_client_hook_del(void *d EINA_UNUSED, E_Client *ec)
{
_xdg6_client_destroy(ec, 1);
if (ec->internal)
_xdg6_client_destroy(ec, 1);
}
EINTERN Eina_Bool