wayland: Fix naming scheme for request handlers
Our implementations should take the name of the request.
This commit is contained in:
parent
75b6e917ad
commit
dadbd793be
@ -197,9 +197,9 @@ meta_wayland_compositor_repick (MetaWaylandCompositor *compositor)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
meta_wayland_compositor_create_surface (struct wl_client *client,
|
wl_compositor_create_surface (struct wl_client *client,
|
||||||
struct wl_resource *resource,
|
struct wl_resource *resource,
|
||||||
guint32 id)
|
guint32 id)
|
||||||
{
|
{
|
||||||
MetaWaylandCompositor *compositor = wl_resource_get_user_data (resource);
|
MetaWaylandCompositor *compositor = wl_resource_get_user_data (resource);
|
||||||
|
|
||||||
@ -207,19 +207,19 @@ meta_wayland_compositor_create_surface (struct wl_client *client,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
meta_wayland_region_destroy (struct wl_client *client,
|
wl_region_destroy (struct wl_client *client,
|
||||||
struct wl_resource *resource)
|
struct wl_resource *resource)
|
||||||
{
|
{
|
||||||
wl_resource_destroy (resource);
|
wl_resource_destroy (resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
meta_wayland_region_add (struct wl_client *client,
|
wl_region_add (struct wl_client *client,
|
||||||
struct wl_resource *resource,
|
struct wl_resource *resource,
|
||||||
gint32 x,
|
gint32 x,
|
||||||
gint32 y,
|
gint32 y,
|
||||||
gint32 width,
|
gint32 width,
|
||||||
gint32 height)
|
gint32 height)
|
||||||
{
|
{
|
||||||
MetaWaylandRegion *region = wl_resource_get_user_data (resource);
|
MetaWaylandRegion *region = wl_resource_get_user_data (resource);
|
||||||
cairo_rectangle_int_t rectangle = { x, y, width, height };
|
cairo_rectangle_int_t rectangle = { x, y, width, height };
|
||||||
@ -228,12 +228,12 @@ meta_wayland_region_add (struct wl_client *client,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
meta_wayland_region_subtract (struct wl_client *client,
|
wl_region_subtract (struct wl_client *client,
|
||||||
struct wl_resource *resource,
|
struct wl_resource *resource,
|
||||||
gint32 x,
|
gint32 x,
|
||||||
gint32 y,
|
gint32 y,
|
||||||
gint32 width,
|
gint32 width,
|
||||||
gint32 height)
|
gint32 height)
|
||||||
{
|
{
|
||||||
MetaWaylandRegion *region = wl_resource_get_user_data (resource);
|
MetaWaylandRegion *region = wl_resource_get_user_data (resource);
|
||||||
cairo_rectangle_int_t rectangle = { x, y, width, height };
|
cairo_rectangle_int_t rectangle = { x, y, width, height };
|
||||||
@ -242,9 +242,9 @@ meta_wayland_region_subtract (struct wl_client *client,
|
|||||||
}
|
}
|
||||||
|
|
||||||
const struct wl_region_interface meta_wayland_region_interface = {
|
const struct wl_region_interface meta_wayland_region_interface = {
|
||||||
meta_wayland_region_destroy,
|
wl_region_destroy,
|
||||||
meta_wayland_region_add,
|
wl_region_add,
|
||||||
meta_wayland_region_subtract
|
wl_region_subtract
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -257,9 +257,9 @@ meta_wayland_region_resource_destroy_cb (struct wl_resource *resource)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
meta_wayland_compositor_create_region (struct wl_client *client,
|
wl_compositor_create_region (struct wl_client *client,
|
||||||
struct wl_resource *compositor_resource,
|
struct wl_resource *compositor_resource,
|
||||||
uint32_t id)
|
uint32_t id)
|
||||||
{
|
{
|
||||||
MetaWaylandRegion *region = g_slice_new0 (MetaWaylandRegion);
|
MetaWaylandRegion *region = g_slice_new0 (MetaWaylandRegion);
|
||||||
|
|
||||||
@ -270,8 +270,8 @@ meta_wayland_compositor_create_region (struct wl_client *client,
|
|||||||
}
|
}
|
||||||
|
|
||||||
const static struct wl_compositor_interface meta_wayland_compositor_interface = {
|
const static struct wl_compositor_interface meta_wayland_compositor_interface = {
|
||||||
meta_wayland_compositor_create_surface,
|
wl_compositor_create_surface,
|
||||||
meta_wayland_compositor_create_region
|
wl_compositor_create_region
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user