mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
wayland: Remove unused list of surfaces
This commit is contained in:
parent
777a6d4570
commit
0bf5c831d5
@ -79,7 +79,6 @@ struct _MetaWaylandCompositor
|
||||
ClutterActor *stage;
|
||||
GHashTable *outputs;
|
||||
GSource *wayland_event_source;
|
||||
GList *surfaces;
|
||||
struct wl_list frame_callbacks;
|
||||
|
||||
MetaXWaylandManager xwayland_manager;
|
||||
|
@ -554,8 +554,6 @@ wl_surface_destructor (struct wl_resource *resource)
|
||||
if (surface->window)
|
||||
destroy_window (surface);
|
||||
|
||||
compositor->surfaces = g_list_remove (compositor->surfaces, surface);
|
||||
|
||||
surface_set_buffer (surface, NULL);
|
||||
pending_state_destroy (&surface->pending);
|
||||
|
||||
|
@ -205,14 +205,10 @@ meta_wayland_compositor_create_surface (struct wl_client *wayland_client,
|
||||
{
|
||||
MetaWaylandCompositor *compositor =
|
||||
wl_resource_get_user_data (wayland_compositor_resource);
|
||||
MetaWaylandSurface *surface;
|
||||
|
||||
surface = meta_wayland_surface_create (compositor,
|
||||
wayland_client, id,
|
||||
MIN (META_WL_SURFACE_VERSION,
|
||||
wl_resource_get_version (wayland_compositor_resource)));
|
||||
|
||||
compositor->surfaces = g_list_prepend (compositor->surfaces, surface);
|
||||
meta_wayland_surface_create (compositor, wayland_client, id,
|
||||
MIN (META_WL_SURFACE_VERSION,
|
||||
wl_resource_get_version (wayland_compositor_resource)));
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user