[PATCH weston 4/8] compositor: use surface_set_size() in one more case
Pekka Paalanen
ppaalanen at gmail.com
Fri Mar 14 05:38:14 PDT 2014
From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
Fix one left-over case that directly assigned
weston_surface::width,height, and so missed view dirtying.
Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
src/compositor.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/compositor.c b/src/compositor.c
index e1d6df1..784a95f 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1203,8 +1203,8 @@ weston_surface_set_size_from_buffer(struct weston_surface *surface)
}
if (surface->buffer_viewport.viewport_set) {
- surface->width = surface->buffer_viewport.dst_width;
- surface->height = surface->buffer_viewport.dst_height;
+ surface_set_size(surface, surface->buffer_viewport.dst_width,
+ surface->buffer_viewport.dst_height);
return;
}
--
1.8.3.2
More information about the wayland-devel
mailing list