wayland: Rename the wl_surface interface handlers
We usually name the method handlers after the direct name of the interface methods. Do that for wl_surface as well.
This commit is contained in:
parent
3c404c5db3
commit
e9ee984921
@ -118,14 +118,14 @@ surface_process_damage (MetaWaylandSurface *surface,
|
||||
}
|
||||
|
||||
static void
|
||||
meta_wayland_surface_destroy (struct wl_client *client,
|
||||
wl_surface_destroy (struct wl_client *client,
|
||||
struct wl_resource *resource)
|
||||
{
|
||||
wl_resource_destroy (resource);
|
||||
}
|
||||
|
||||
static void
|
||||
meta_wayland_surface_attach (struct wl_client *client,
|
||||
wl_surface_attach (struct wl_client *client,
|
||||
struct wl_resource *surface_resource,
|
||||
struct wl_resource *buffer_resource,
|
||||
gint32 dx, gint32 dy)
|
||||
@ -158,7 +158,7 @@ meta_wayland_surface_attach (struct wl_client *client,
|
||||
}
|
||||
|
||||
static void
|
||||
meta_wayland_surface_damage (struct wl_client *client,
|
||||
wl_surface_damage (struct wl_client *client,
|
||||
struct wl_resource *surface_resource,
|
||||
gint32 x,
|
||||
gint32 y,
|
||||
@ -186,7 +186,7 @@ destroy_frame_callback (struct wl_resource *callback_resource)
|
||||
}
|
||||
|
||||
static void
|
||||
meta_wayland_surface_frame (struct wl_client *client,
|
||||
wl_surface_frame (struct wl_client *client,
|
||||
struct wl_resource *surface_resource,
|
||||
guint32 callback_id)
|
||||
{
|
||||
@ -206,7 +206,7 @@ meta_wayland_surface_frame (struct wl_client *client,
|
||||
}
|
||||
|
||||
static void
|
||||
meta_wayland_surface_set_opaque_region (struct wl_client *client,
|
||||
wl_surface_set_opaque_region (struct wl_client *client,
|
||||
struct wl_resource *surface_resource,
|
||||
struct wl_resource *region_resource)
|
||||
{
|
||||
@ -225,7 +225,7 @@ meta_wayland_surface_set_opaque_region (struct wl_client *client,
|
||||
}
|
||||
|
||||
static void
|
||||
meta_wayland_surface_set_input_region (struct wl_client *client,
|
||||
wl_surface_set_input_region (struct wl_client *client,
|
||||
struct wl_resource *surface_resource,
|
||||
struct wl_resource *region_resource)
|
||||
{
|
||||
@ -507,7 +507,7 @@ commit_double_buffered_state (MetaWaylandSurface *surface,
|
||||
}
|
||||
|
||||
static void
|
||||
meta_wayland_surface_commit (struct wl_client *client,
|
||||
wl_surface_commit (struct wl_client *client,
|
||||
struct wl_resource *resource)
|
||||
{
|
||||
MetaWaylandSurface *surface = wl_resource_get_user_data (resource);
|
||||
@ -520,7 +520,7 @@ meta_wayland_surface_commit (struct wl_client *client,
|
||||
}
|
||||
|
||||
static void
|
||||
meta_wayland_surface_set_buffer_transform (struct wl_client *client,
|
||||
wl_surface_set_buffer_transform (struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
int32_t transform)
|
||||
{
|
||||
@ -528,7 +528,7 @@ meta_wayland_surface_set_buffer_transform (struct wl_client *client,
|
||||
}
|
||||
|
||||
static void
|
||||
meta_wayland_surface_set_buffer_scale (struct wl_client *client,
|
||||
wl_surface_set_buffer_scale (struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
int scale)
|
||||
{
|
||||
@ -536,16 +536,16 @@ meta_wayland_surface_set_buffer_scale (struct wl_client *client,
|
||||
g_warning ("TODO: support set_buffer_scale request");
|
||||
}
|
||||
|
||||
const struct wl_surface_interface meta_wayland_surface_interface = {
|
||||
meta_wayland_surface_destroy,
|
||||
meta_wayland_surface_attach,
|
||||
meta_wayland_surface_damage,
|
||||
meta_wayland_surface_frame,
|
||||
meta_wayland_surface_set_opaque_region,
|
||||
meta_wayland_surface_set_input_region,
|
||||
meta_wayland_surface_commit,
|
||||
meta_wayland_surface_set_buffer_transform,
|
||||
meta_wayland_surface_set_buffer_scale
|
||||
const struct wl_surface_interface meta_wayland_wl_surface_interface = {
|
||||
wl_surface_destroy,
|
||||
wl_surface_attach,
|
||||
wl_surface_damage,
|
||||
wl_surface_frame,
|
||||
wl_surface_set_opaque_region,
|
||||
wl_surface_set_input_region,
|
||||
wl_surface_commit,
|
||||
wl_surface_set_buffer_transform,
|
||||
wl_surface_set_buffer_scale
|
||||
};
|
||||
|
||||
void
|
||||
@ -609,7 +609,7 @@ meta_wayland_surface_create (MetaWaylandCompositor *compositor,
|
||||
surface->compositor = compositor;
|
||||
|
||||
surface->resource = wl_resource_create (client, &wl_surface_interface, version, id);
|
||||
wl_resource_set_implementation (surface->resource, &meta_wayland_surface_interface, surface, wl_surface_destructor);
|
||||
wl_resource_set_implementation (surface->resource, &meta_wayland_wl_surface_interface, surface, wl_surface_destructor);
|
||||
|
||||
surface->buffer_destroy_listener.notify = surface_handle_buffer_destroy;
|
||||
surface->surface_actor = g_object_ref_sink (meta_surface_actor_wayland_new (surface));
|
||||
|
Loading…
Reference in New Issue
Block a user