mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-04 04:06:09 -05:00
wlr_scene: Only do disable cleanup when explicit damage is given
We don't want to iterate the subtree for trivial update scenarios. We only care when a scene is reparented or disabled in which both cases provides us with explicit damage
This commit is contained in:
parent
ef19f52ca9
commit
ed7b633669
1 changed files with 2 additions and 2 deletions
|
|
@ -703,9 +703,9 @@ static void scene_node_update(struct wlr_scene_node *node,
|
|||
|
||||
int x, y;
|
||||
if (!wlr_scene_node_coords(node, &x, &y)) {
|
||||
scene_node_cleanup_when_disabled(node, scene->restack_xwayland_surfaces, &scene->outputs);
|
||||
|
||||
if (damage) {
|
||||
scene_node_cleanup_when_disabled(node, scene->restack_xwayland_surfaces, &scene->outputs);
|
||||
|
||||
scene_update_region(scene, damage);
|
||||
scene_damage_outputs(scene, damage);
|
||||
pixman_region32_fini(damage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue