mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-15 08:58:08 +02:00
compositor: Remove weston_view_damage_below from transform add/remove
weston_view_damage_below() does nothing but schedule a repaint, and a repaint will be scheduled in weston_view_geometry_dirty_internal() anyway, so remove the extra call. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
1683d7a9d2
commit
cc0edfd13d
1 changed files with 0 additions and 6 deletions
|
|
@ -2002,9 +2002,6 @@ weston_view_add_transform(struct weston_view *view,
|
|||
struct wl_list *pos,
|
||||
struct weston_transform *transform)
|
||||
{
|
||||
if (weston_view_is_mapped(view))
|
||||
weston_view_damage_below(view);
|
||||
|
||||
wl_list_remove(&transform->link);
|
||||
wl_list_insert(pos, &transform->link);
|
||||
|
||||
|
|
@ -2019,9 +2016,6 @@ weston_view_remove_transform(struct weston_view *view,
|
|||
if (wl_list_empty(&transform->link))
|
||||
return;
|
||||
|
||||
if (weston_view_is_mapped(view))
|
||||
weston_view_damage_below(view);
|
||||
|
||||
wl_list_remove(&transform->link);
|
||||
wl_list_init(&transform->link);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue