From fdfdd01a796a736a2c41a80e2670972b3d4b1eff Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Sun, 3 Jul 2022 12:15:08 -0400 Subject: wlr_scene: Use direct assignment for damage indicator timestamps --- types/scene/wlr_scene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index a6328a36..828d06e6 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -1230,7 +1230,7 @@ bool wlr_scene_output_commit(struct wlr_scene_output *scene_output) { pixman_region32_init(¤t_damage->region); pixman_region32_copy(¤t_damage->region, &scene_output->damage_ring.current); - memcpy(¤t_damage->when, &now, sizeof(now)); + current_damage->when = now; wl_list_insert(regions, ¤t_damage->link); } } -- cgit v1.2.3