From 41fd552f532c6c5bf4e7c4852f7139004315c04d Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Tue, 23 Apr 2024 16:28:41 -0400 Subject: [PATCH] wlr_scene: Set `wlr_damage_ring_set_bounds` earlier Fixes the _HIGHLIGHT option not highlighting the buffer correctly after a resize --- types/scene/wlr_scene.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index 116e28c7..cd03ea37 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -1766,6 +1766,9 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output, struct render_list_entry *list_data = list_con.render_list->data; int list_len = list_con.render_list->size / sizeof(*list_data); + wlr_damage_ring_set_bounds(&scene_output->damage_ring, + render_data.trans_width, render_data.trans_height); + if (debug_damage == WLR_SCENE_DEBUG_DAMAGE_RERENDER) { wlr_damage_ring_add_whole(&scene_output->damage_ring); } @@ -1830,9 +1833,6 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output, return true; } - wlr_damage_ring_set_bounds(&scene_output->damage_ring, - render_data.trans_width, render_data.trans_height); - struct wlr_swapchain *swapchain = options->swapchain; if (!swapchain) { if (!wlr_output_configure_primary_swapchain(output, state, &output->swapchain)) {