forked from enlightenment/enlightenment
only apply xdg-shell client del hooks to internal clients
ref 8173c06c4d
This commit is contained in:
parent
ad15822f27
commit
7e05eff3e3
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue