mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-01 20:18:35 +00:00
libweston: Remove plane clip
Currently this isn't calculated properly, and results in clipping away important damage when a client moves from a non-primary plane to the primary plane. Instead of trying to fix it, let's just throw it away. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
c4d24c01b3
commit
550c4c3dbc
|
@ -444,7 +444,6 @@ enum weston_output_power_state {
|
|||
|
||||
struct weston_plane {
|
||||
struct weston_compositor *compositor;
|
||||
pixman_region32_t clip;
|
||||
int32_t x, y;
|
||||
struct wl_list link;
|
||||
};
|
||||
|
|
|
@ -3012,8 +3012,6 @@ output_update_visibility(struct weston_output *output)
|
|||
pixman_region32_init(&clip);
|
||||
|
||||
wl_list_for_each(plane, &ec->plane_list, link) {
|
||||
pixman_region32_copy(&plane->clip, &clip);
|
||||
|
||||
pixman_region32_init(&opaque);
|
||||
|
||||
wl_list_for_each(pnode, &output->paint_node_z_order_list,
|
||||
|
@ -3268,7 +3266,6 @@ weston_output_flush_damage_for_plane(struct weston_output *output,
|
|||
pixman_region32_clear(&pnode->damage);
|
||||
}
|
||||
pixman_region32_intersect(damage, damage, &output->region);
|
||||
pixman_region32_subtract(damage, damage, &plane->clip);
|
||||
return changed;
|
||||
}
|
||||
|
||||
|
@ -5664,7 +5661,6 @@ idle_handler(void *data)
|
|||
WL_EXPORT void
|
||||
weston_plane_init(struct weston_plane *plane, struct weston_compositor *ec)
|
||||
{
|
||||
pixman_region32_init(&plane->clip);
|
||||
plane->x = 0;
|
||||
plane->y = 0;
|
||||
plane->compositor = ec;
|
||||
|
@ -5679,8 +5675,6 @@ weston_plane_release(struct weston_plane *plane)
|
|||
{
|
||||
struct weston_output *output;
|
||||
|
||||
pixman_region32_fini(&plane->clip);
|
||||
|
||||
wl_list_for_each(output, &plane->compositor->output_list, link) {
|
||||
struct weston_paint_node *node;
|
||||
|
||||
|
|
Loading…
Reference in a new issue