mirror of
https://github.com/brl/mutter.git
synced 2024-11-13 01:36:10 -05:00
wayland: Enable destroy animations for regular windows
Don't set the surface actor to a new buffer if it's becoming unmapped. This is also technically wrong since we'll send out the release event, but oh well. We should probably decouple MetaWaylandBuffer from the CoglTexture at some point, so we can send out releases on-demand.
This commit is contained in:
parent
98e3e5e50f
commit
283546b379
@ -262,9 +262,6 @@ ensure_buffer_texture (MetaWaylandBuffer *buffer)
|
||||
CoglError *catch_error = NULL;
|
||||
CoglTexture *texture;
|
||||
|
||||
if (!buffer)
|
||||
return;
|
||||
|
||||
texture = COGL_TEXTURE (cogl_wayland_texture_2d_new_from_buffer (ctx,
|
||||
buffer->resource,
|
||||
&catch_error));
|
||||
@ -295,7 +292,7 @@ actor_surface_commit (MetaWaylandSurface *surface,
|
||||
MetaSurfaceActor *surface_actor = surface->surface_actor;
|
||||
MetaWaylandBuffer *buffer = pending->buffer;
|
||||
|
||||
if (buffer_changed)
|
||||
if (buffer_changed && buffer)
|
||||
{
|
||||
ensure_buffer_texture (buffer);
|
||||
meta_surface_actor_wayland_set_buffer (META_SURFACE_ACTOR_WAYLAND (surface->surface_actor), buffer);
|
||||
|
Loading…
Reference in New Issue
Block a user