Remove the weston_view.geometry.width/height fields
This has a couple of additional implications for the internal weston API:
1) weston_view_configure no longer exists. Use weston_view_set_position
instead.
2) The weston_surface.configure callback no longer takes a width and
height. If you need these, surface.width/height are set before
configure is called. If you need to know when the width/height
changes, you must track that yourself.
diff --git a/src/compositor.h b/src/compositor.h
index 3e878c8..3814b46 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -761,7 +761,6 @@
*/
struct {
float x, y; /* surface translation on display */
- int32_t width, height;
/* struct weston_transform */
struct wl_list transformation_list;
@@ -875,7 +874,7 @@
* a new buffer has been set up for this surface. The integer params
* are the sx and sy paramerters supplied to surface::attach .
*/
- void (*configure)(struct weston_surface *es, int32_t sx, int32_t sy, int32_t width, int32_t height);
+ void (*configure)(struct weston_surface *es, int32_t sx, int32_t sy);
void *configure_private;
/* Parent's list of its sub-surfaces, weston_subsurface:parent_link.
@@ -1123,10 +1122,6 @@
weston_view_destroy(struct weston_view *view);
void
-weston_view_configure(struct weston_view *view,
- float x, float y, int width, int height);
-
-void
weston_view_set_position(struct weston_view *view,
float x, float y);