From 235c8e922adcd2de7eab892c05a1b0b0efe75a9b Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Wed, 7 Aug 2024 23:51:45 -0400 Subject: [PATCH] Revert "wlr_scene: Ensure scene_node_update is updating entire node." This reverts commit 66d96d244c589840de6addc6eae1ebfb3101b12f. --- types/scene/wlr_scene.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index b8bfe428..01643a6c 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -621,8 +621,13 @@ static void scene_node_update(struct wlr_scene_node *node, struct wlr_scene *scene = scene_node_get_root(node); int x, y; - bool enabled = wlr_scene_node_coords(node, &x, &y); - if (!enabled && !damage) { + if (!wlr_scene_node_coords(node, &x, &y)) { + if (damage) { + scene_update_region(scene, damage); + scene_damage_outputs(scene, damage); + pixman_region32_fini(damage); + } + return; } @@ -641,10 +646,7 @@ static void scene_node_update(struct wlr_scene_node *node, scene_update_region(scene, &update_region); pixman_region32_fini(&update_region); - if (enabled) { - scene_node_visibility(node, damage); - } - + scene_node_visibility(node, damage); scene_damage_outputs(scene, damage); pixman_region32_fini(damage); }