mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
Revert "wlr_scene: Ensure scene_node_update is updating entire node."
This reverts commit 66d96d244c.
This commit is contained in:
parent
70c99460ca
commit
235c8e922a
1 changed files with 8 additions and 6 deletions
|
|
@ -621,8 +621,13 @@ static void scene_node_update(struct wlr_scene_node *node,
|
||||||
struct wlr_scene *scene = scene_node_get_root(node);
|
struct wlr_scene *scene = scene_node_get_root(node);
|
||||||
|
|
||||||
int x, y;
|
int x, y;
|
||||||
bool enabled = wlr_scene_node_coords(node, &x, &y);
|
if (!wlr_scene_node_coords(node, &x, &y)) {
|
||||||
if (!enabled && !damage) {
|
if (damage) {
|
||||||
|
scene_update_region(scene, damage);
|
||||||
|
scene_damage_outputs(scene, damage);
|
||||||
|
pixman_region32_fini(damage);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -641,10 +646,7 @@ static void scene_node_update(struct wlr_scene_node *node,
|
||||||
scene_update_region(scene, &update_region);
|
scene_update_region(scene, &update_region);
|
||||||
pixman_region32_fini(&update_region);
|
pixman_region32_fini(&update_region);
|
||||||
|
|
||||||
if (enabled) {
|
|
||||||
scene_node_visibility(node, damage);
|
scene_node_visibility(node, damage);
|
||||||
}
|
|
||||||
|
|
||||||
scene_damage_outputs(scene, damage);
|
scene_damage_outputs(scene, damage);
|
||||||
pixman_region32_fini(damage);
|
pixman_region32_fini(damage);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue