mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
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:
parent
f04ef79f61
commit
c9f0dbc159
6 changed files with 10 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue