mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
wayland: Remove superfluous "wayland_" from arguments
This commit is contained in:
parent
1a62ac9276
commit
225e20a898
@ -91,28 +91,28 @@ surface_process_damage (MetaWaylandSurface *surface,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
meta_wayland_surface_destroy (struct wl_client *wayland_client,
|
meta_wayland_surface_destroy (struct wl_client *client,
|
||||||
struct wl_resource *wayland_resource)
|
struct wl_resource *resource)
|
||||||
{
|
{
|
||||||
wl_resource_destroy (wayland_resource);
|
wl_resource_destroy (resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
meta_wayland_surface_attach (struct wl_client *wayland_client,
|
meta_wayland_surface_attach (struct wl_client *client,
|
||||||
struct wl_resource *wayland_surface_resource,
|
struct wl_resource *surface_resource,
|
||||||
struct wl_resource *wayland_buffer_resource,
|
struct wl_resource *buffer_resource,
|
||||||
gint32 dx, gint32 dy)
|
gint32 dx, gint32 dy)
|
||||||
{
|
{
|
||||||
MetaWaylandSurface *surface =
|
MetaWaylandSurface *surface =
|
||||||
wl_resource_get_user_data (wayland_surface_resource);
|
wl_resource_get_user_data (surface_resource);
|
||||||
MetaWaylandBuffer *buffer;
|
MetaWaylandBuffer *buffer;
|
||||||
|
|
||||||
/* X11 unmanaged window */
|
/* X11 unmanaged window */
|
||||||
if (!surface)
|
if (!surface)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (wayland_buffer_resource)
|
if (buffer_resource)
|
||||||
buffer = meta_wayland_buffer_from_resource (wayland_buffer_resource);
|
buffer = meta_wayland_buffer_from_resource (buffer_resource);
|
||||||
else
|
else
|
||||||
buffer = NULL;
|
buffer = NULL;
|
||||||
|
|
||||||
@ -588,7 +588,7 @@ meta_wayland_surface_resource_destroy_cb (struct wl_resource *resource)
|
|||||||
|
|
||||||
MetaWaylandSurface *
|
MetaWaylandSurface *
|
||||||
meta_wayland_surface_create (MetaWaylandCompositor *compositor,
|
meta_wayland_surface_create (MetaWaylandCompositor *compositor,
|
||||||
struct wl_client *wayland_client,
|
struct wl_client *client,
|
||||||
guint32 id,
|
guint32 id,
|
||||||
guint32 version)
|
guint32 version)
|
||||||
{
|
{
|
||||||
@ -596,9 +596,7 @@ meta_wayland_surface_create (MetaWaylandCompositor *compositor,
|
|||||||
|
|
||||||
surface->compositor = compositor;
|
surface->compositor = compositor;
|
||||||
|
|
||||||
surface->resource = wl_resource_create (wayland_client,
|
surface->resource = wl_resource_create (client, &wl_surface_interface, version, id);
|
||||||
&wl_surface_interface,
|
|
||||||
version, id);
|
|
||||||
wl_resource_set_implementation (surface->resource, &meta_wayland_surface_interface, surface,
|
wl_resource_set_implementation (surface->resource, &meta_wayland_surface_interface, surface,
|
||||||
meta_wayland_surface_resource_destroy_cb);
|
meta_wayland_surface_resource_destroy_cb);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user