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/window.h b/clients/window.h
index 74e95b6..341f602 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -125,7 +125,10 @@
struct window *
window_create(struct display *display, const char *title,
- int32_t x, int32_t y, int32_t width, int32_t height);
+ int32_t width, int32_t height);
+
+void
+window_move(struct window *window, struct input *input, uint32_t time);
void
window_draw(struct window *window);
@@ -143,9 +146,6 @@
window_schedule_redraw(struct window *window);
void
-window_move(struct window *window, int32_t x, int32_t y);
-
-void
window_damage(struct window *window, int32_t x, int32_t y,
int32_t width, int32_t height);