mirror of
https://github.com/brl/mutter.git
synced 2025-04-24 02:49:37 +00:00
wayland-surface: Rename the subsurface extension to wl_subsurface
To match the interface name.
This commit is contained in:
parent
49092397f2
commit
bc81736e6b
@ -463,7 +463,7 @@ commit_pending_state (MetaWaylandSurface *surface,
|
|||||||
dnd_surface_commit (surface, pending);
|
dnd_surface_commit (surface, pending);
|
||||||
else if (surface->window)
|
else if (surface->window)
|
||||||
toplevel_surface_commit (surface, pending);
|
toplevel_surface_commit (surface, pending);
|
||||||
else if (surface->subsurface.resource)
|
else if (surface->wl_subsurface.resource)
|
||||||
subsurface_surface_commit (surface, pending);
|
subsurface_surface_commit (surface, pending);
|
||||||
|
|
||||||
g_list_foreach (surface->subsurfaces, parent_surface_committed, NULL);
|
g_list_foreach (surface->subsurfaces, parent_surface_committed, NULL);
|
||||||
@ -654,7 +654,7 @@ surface_should_be_reactive (MetaWaylandSurface *surface)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
/* If we're a subsurface, we should be reactive */
|
/* If we're a subsurface, we should be reactive */
|
||||||
if (surface->subsurface.resource)
|
if (surface->wl_subsurface.resource)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -1542,7 +1542,7 @@ wl_subsurface_destructor (struct wl_resource *resource)
|
|||||||
}
|
}
|
||||||
|
|
||||||
pending_state_destroy (&surface->sub.pending);
|
pending_state_destroy (&surface->sub.pending);
|
||||||
destroy_surface_extension (&surface->subsurface);
|
destroy_surface_extension (&surface->wl_subsurface);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -1668,7 +1668,7 @@ wl_subsurface_set_desync (struct wl_client *client,
|
|||||||
surface->sub.synchronous = FALSE;
|
surface->sub.synchronous = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct wl_subsurface_interface meta_wayland_subsurface_interface = {
|
static const struct wl_subsurface_interface meta_wayland_wl_subsurface_interface = {
|
||||||
wl_subsurface_destroy,
|
wl_subsurface_destroy,
|
||||||
wl_subsurface_set_position,
|
wl_subsurface_set_position,
|
||||||
wl_subsurface_place_above,
|
wl_subsurface_place_above,
|
||||||
@ -1706,9 +1706,9 @@ wl_subcompositor_get_subsurface (struct wl_client *client,
|
|||||||
MetaWaylandSurface *surface = wl_resource_get_user_data (surface_resource);
|
MetaWaylandSurface *surface = wl_resource_get_user_data (surface_resource);
|
||||||
MetaWaylandSurface *parent = wl_resource_get_user_data (parent_resource);
|
MetaWaylandSurface *parent = wl_resource_get_user_data (parent_resource);
|
||||||
|
|
||||||
if (!create_surface_extension (&surface->subsurface,
|
if (!create_surface_extension (&surface->wl_subsurface,
|
||||||
&wl_subsurface_interface,
|
&wl_subsurface_interface,
|
||||||
&meta_wayland_subsurface_interface,
|
&meta_wayland_wl_subsurface_interface,
|
||||||
wl_subsurface_destructor,
|
wl_subsurface_destructor,
|
||||||
surface, resource, id))
|
surface, resource, id))
|
||||||
{
|
{
|
||||||
|
@ -96,7 +96,7 @@ struct _MetaWaylandSurface
|
|||||||
MetaWaylandSurfaceExtension xdg_popup;
|
MetaWaylandSurfaceExtension xdg_popup;
|
||||||
MetaWaylandSurfaceExtension wl_shell_surface;
|
MetaWaylandSurfaceExtension wl_shell_surface;
|
||||||
MetaWaylandSurfaceExtension gtk_surface;
|
MetaWaylandSurfaceExtension gtk_surface;
|
||||||
MetaWaylandSurfaceExtension subsurface;
|
MetaWaylandSurfaceExtension wl_subsurface;
|
||||||
|
|
||||||
/* xdg_surface stuff */
|
/* xdg_surface stuff */
|
||||||
struct wl_resource *xdg_shell_resource;
|
struct wl_resource *xdg_shell_resource;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user