mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-03 07:15:42 -04:00
Schedule repaint from surface destructor
Not just the surface_destroy protocol entry points.
This commit is contained in:
parent
a661f263b4
commit
117d5130b1
1 changed files with 2 additions and 4 deletions
|
|
@ -186,6 +186,8 @@ destroy_surface(struct wl_resource *resource, struct wl_client *client)
|
||||||
l->func(l, surface);
|
l->func(l, surface);
|
||||||
|
|
||||||
free(surface);
|
free(surface);
|
||||||
|
|
||||||
|
wlsc_compositor_schedule_repaint(compositor);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
@ -419,11 +421,7 @@ static void
|
||||||
surface_destroy(struct wl_client *client,
|
surface_destroy(struct wl_client *client,
|
||||||
struct wl_surface *surface)
|
struct wl_surface *surface)
|
||||||
{
|
{
|
||||||
struct wlsc_surface *es = (struct wlsc_surface *) surface;
|
|
||||||
|
|
||||||
wl_resource_destroy(&surface->base, client);
|
wl_resource_destroy(&surface->base, client);
|
||||||
|
|
||||||
wlsc_compositor_schedule_repaint(es->compositor);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue