<p dir="ltr">Pekka and I already talked about this one and I think it's the right thing to do.<br>
--Jason Ekstrand</p>
<p dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>></p>
<div class="gmail_quote">On Nov 26, 2013 11:20 AM, "Jonny Lamb" <<a href="mailto:jonny.lamb@collabora.co.uk">jonny.lamb@collabora.co.uk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Pekka Paalanen <<a href="mailto:pekka.paalanen@collabora.co.uk">pekka.paalanen@collabora.co.uk</a>><br>
<br>
This removes the calls to weston_surface_buffer_width/height() from<br>
input.c, which are the last external calls to them.<br>
<br>
Instead, use the cached values from weston_surface::width,height. These<br>
have already been set by weston_surface_commit(), because that is the<br>
only way a weston_surface can get a buffer.<br>
---<br>
 src/input.c | 4 ++--<br>
 1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/input.c b/src/input.c<br>
index ae0e832..f965ba1 100644<br>
--- a/src/input.c<br>
+++ b/src/input.c<br>
@@ -1495,8 +1495,8 @@ pointer_set_cursor(struct wl_client *client, struct wl_resource *resource,<br>
        pointer->hotspot_y = y;<br>
<br>
        if (surface->buffer_ref.buffer)<br>
-               pointer_cursor_surface_configure(surface, 0, 0, weston_surface_buffer_width(surface),<br>
-                                                               weston_surface_buffer_height(surface));<br>
+               pointer_cursor_surface_configure(surface, 0, 0, surface->width,<br>
+                                                               surface->height);<br>
 }<br>
<br>
 static void<br>
--<br>
1.8.4.2<br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</blockquote></div>