mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-24 01:40:28 -05:00
types/wlr_output: removing the useless pointer
This commit is contained in:
parent
cf93d31736
commit
43554c1966
6 changed files with 14 additions and 21 deletions
|
|
@ -2062,16 +2062,15 @@ static void handle_page_flip(int fd, unsigned seq,
|
|||
present_flags |= WLR_OUTPUT_PRESENT_ZERO_COPY;
|
||||
}
|
||||
|
||||
struct timespec present_time = {
|
||||
.tv_sec = tv_sec,
|
||||
.tv_nsec = tv_usec * 1000,
|
||||
};
|
||||
struct wlr_output_event_present present_event = {
|
||||
/* The DRM backend guarantees that the presentation event will be for
|
||||
* the last submitted frame. */
|
||||
.commit_seq = conn->output.commit_seq,
|
||||
.presented = drm->session->active,
|
||||
.when = &present_time,
|
||||
.when = {
|
||||
.tv_sec = tv_sec,
|
||||
.tv_nsec = tv_usec * 1000,
|
||||
},
|
||||
.seq = seq,
|
||||
.refresh = mhz_to_nsec(conn->refresh),
|
||||
.flags = present_flags,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue