wayland-surface: Properly destroy extension resources on the destroy request
Otherwise, the resource IDs will linger around and be destroyed again on client close...
This commit is contained in:
parent
a8632c2546
commit
f4fc498e65
@ -518,7 +518,7 @@ static void
|
|||||||
xdg_surface_destroy (struct wl_client *client,
|
xdg_surface_destroy (struct wl_client *client,
|
||||||
struct wl_resource *resource)
|
struct wl_resource *resource)
|
||||||
{
|
{
|
||||||
destroy_surface_extension (resource);
|
wl_resource_destroy (resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -756,7 +756,7 @@ static void
|
|||||||
xdg_popup_destroy (struct wl_client *client,
|
xdg_popup_destroy (struct wl_client *client,
|
||||||
struct wl_resource *resource)
|
struct wl_resource *resource)
|
||||||
{
|
{
|
||||||
destroy_surface_extension (resource);
|
wl_resource_destroy (resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user