Change all timespec pointers in events to owned

Follow-up from !4803.  Make things consistent by making all `struct
timespec`s in events owned.  Reduces the need for thinking about
ownership/lifetimes.
This commit is contained in:
David Turner 2025-04-24 14:12:43 +01:00 committed by Simon Ser
parent f04ef79f61
commit c9f0dbc159
6 changed files with 10 additions and 10 deletions

View file

@ -728,7 +728,7 @@ bool output_prepare_commit(struct wlr_output *output, const struct wlr_output_st
struct wlr_output_event_precommit pre_event = {
.output = output,
.when = &now,
.when = now,
.state = state,
};
wl_signal_emit_mutable(&output->events.precommit, &pre_event);
@ -750,7 +750,7 @@ void output_apply_commit(struct wlr_output *output, const struct wlr_output_stat
clock_gettime(CLOCK_MONOTONIC, &now);
struct wlr_output_event_commit event = {
.output = output,
.when = &now,
.when = now,
.state = state,
};
wl_signal_emit_mutable(&output->events.commit, &event);