From 7ed251c11910c315fcf2d0f4cef7e07894410464 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Fri, 14 Mar 2014 14:38:14 +0200 Subject: [PATCH] compositor: use surface_set_size() in one more case Fix one left-over case that directly assigned weston_surface::width,height, and so missed view dirtying. Signed-off-by: Pekka Paalanen --- src/compositor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index cea4a450..924f7fba 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; }