The non-transformed case looked a little odd, calling
weston_surface_to_global(), since it already tests for transform.enabled
and simply uses width, height for the box.
Streamline it, by open-coding weston_surface_to_global(), and avoiding
another call into weston_surface_update_transform(). This way it does
not look suspicious to me.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
&box);
pixman_region32_fini(&box);
} else {
- int32_t x, y;
- weston_surface_to_global(surface, sx, sy, &x, &y);
pixman_region32_union_rect(&surface->damage, &surface->damage,
- x, y, width, height);
+ surface->geometry.x + sx,
+ surface->geometry.y + sy,
+ width, height);
}
weston_compositor_schedule_repaint(surface->compositor);