wlr_scene: Set `wlr_damage_ring_set_bounds` earlier

Fixes the _HIGHLIGHT option not highlighting the buffer correctly after
a resize
master
Alexander Orzechowski 7 months ago
parent 1dc44a1afe
commit 41fd552f53

@ -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)) {

Loading…
Cancel
Save