wayland-surface: Subsurfaces start out in synchronous mode

This commit is contained in:
Jasper St. Pierre 2014-06-11 12:34:44 -04:00
parent 5350120db4
commit e33c58297d

View File

@ -1677,6 +1677,7 @@ wl_subcompositor_get_subsurface (struct wl_client *client,
}
pending_state_init (&surface->sub.pending);
surface->sub.synchronous = TRUE;
surface->sub.parent = parent;
surface->sub.parent_destroy_listener.notify = surface_handle_parent_surface_destroyed;
wl_resource_add_destroy_listener (parent->resource, &surface->sub.parent_destroy_listener);