Update surface.attach and change surface.map to surface.map_toplevel
The new map_toplevel() request no longer specifies a position and takes
the size from the attached buffer. The attach request now takes a
position relative to the top-left corner of the old buffer to let
clients specify the relative position of the new buffer.
diff --git a/clients/gears.c b/clients/gears.c
index 7d3c310..2f2eeda 100644
--- a/clients/gears.c
+++ b/clients/gears.c
@@ -340,15 +340,14 @@
static struct gears *
gears_create(struct display *display)
{
- const int x = 200, y = 200, width = 450, height = 500;
+ const int width = 450, height = 500;
struct gears *gears;
int i;
gears = malloc(sizeof *gears);
memset(gears, 0, sizeof *gears);
gears->d = display;
- gears->window = window_create(display, "Wayland Gears",
- x, y, width, height);
+ gears->window = window_create(display, "Wayland Gears", width, height);
gears->display = display_get_egl_display(gears->d);
if (gears->display == NULL)