compositor: Drop weston_surface_to_global()
Just always call weston_surface_to_global_float() instead.
diff --git a/src/shell.c b/src/shell.c
index 25a9677..879433c 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -176,8 +176,8 @@
struct shell_grab base;
struct weston_matrix rotation;
struct {
- int32_t x;
- int32_t y;
+ GLfloat x;
+ GLfloat y;
} center;
};
@@ -1896,10 +1896,10 @@
shell_grab_init(&rotate->base, &rotate_grab_interface, surface);
- weston_surface_to_global(surface->surface,
- surface->surface->geometry.width / 2,
- surface->surface->geometry.height / 2,
- &rotate->center.x, &rotate->center.y);
+ weston_surface_to_global_float(surface->surface,
+ surface->surface->geometry.width / 2,
+ surface->surface->geometry.height / 2,
+ &rotate->center.x, &rotate->center.y);
wl_pointer_start_grab(seat->pointer, &rotate->base.grab);