aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-07-03 12:15:08 -0400
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-07-03 12:21:39 -0400
commitfdfdd01a796a736a2c41a80e2670972b3d4b1eff (patch)
treee84024100dbff2877cbbd7a5f38f533ecd5555c3
parentffb53a6103bcaf23a9991008dc7fee09fb803542 (diff)
wlr_scene: Use direct assignment for damage indicator timestamps
-rw-r--r--types/scene/wlr_scene.c2
1 files changed, 1 insertions, 1 deletions
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(&current_damage->region);
pixman_region32_copy(&current_damage->region,
&scene_output->damage_ring.current);
- memcpy(&current_damage->when, &now, sizeof(now));
+ current_damage->when = now;
wl_list_insert(regions, &current_damage->link);
}
}