wayland/xdg-foreign: Send immediate destroy event to correct resource
The destroyed signal that was emitted if an imported surface was not
available when created, for example if the handle was invalid or
already unexported, was emitted on the wrong resource.
(cherry picked from commit 98d7024288
)
This commit is contained in:
@ -384,7 +384,7 @@ xdg_importer_import (struct wl_client *client,
|
|||||||
(!META_IS_WAYLAND_XDG_SURFACE (exported->surface->role) &&
|
(!META_IS_WAYLAND_XDG_SURFACE (exported->surface->role) &&
|
||||||
!META_IS_WAYLAND_ZXDG_SURFACE_V6 (exported->surface->role)))
|
!META_IS_WAYLAND_ZXDG_SURFACE_V6 (exported->surface->role)))
|
||||||
{
|
{
|
||||||
zxdg_imported_v1_send_destroyed (resource);
|
zxdg_imported_v1_send_destroyed (xdg_imported_resource);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user