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