mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
wayland/actor-surface-role: Check for toplevel window
Don't check whether the surface of the role has a window, but whether the corresponding toplevel surface has a window. This is necessary to make subsurfaces not always early out. https://bugzilla.gnome.org/show_bug.cgi?id=770131
This commit is contained in:
parent
b3f27de710
commit
43151edece
@ -1999,10 +1999,12 @@ actor_surface_commit (MetaWaylandSurfaceRole *surface_role,
|
||||
{
|
||||
MetaWaylandSurface *surface =
|
||||
meta_wayland_surface_role_get_surface (surface_role);
|
||||
MetaWaylandSurface *toplevel_surface;
|
||||
|
||||
queue_surface_actor_frame_callbacks (surface, pending);
|
||||
|
||||
if (!surface->window)
|
||||
toplevel_surface = meta_wayland_surface_get_toplevel (surface);
|
||||
if (!toplevel_surface || !toplevel_surface->window)
|
||||
return;
|
||||
|
||||
meta_surface_actor_wayland_sync_state (
|
||||
|
Loading…
Reference in New Issue
Block a user