mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04: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
|
|
@ -747,9 +747,6 @@ void handle_x11_present_event(struct wlr_x11_backend *x11,
|
|||
|
||||
output->last_msc = complete_notify->msc;
|
||||
|
||||
struct timespec t;
|
||||
timespec_from_nsec(&t, complete_notify->ust * 1000);
|
||||
|
||||
uint32_t flags = 0;
|
||||
if (complete_notify->mode == XCB_PRESENT_COMPLETE_MODE_FLIP) {
|
||||
flags |= WLR_OUTPUT_PRESENT_ZERO_COPY;
|
||||
|
|
@ -760,10 +757,10 @@ void handle_x11_present_event(struct wlr_x11_backend *x11,
|
|||
.output = &output->wlr_output,
|
||||
.commit_seq = complete_notify->serial,
|
||||
.presented = presented,
|
||||
.when = &t,
|
||||
.seq = complete_notify->msc,
|
||||
.flags = flags,
|
||||
};
|
||||
timespec_from_nsec(&present_event.when, complete_notify->ust * 1000);
|
||||
wlr_output_send_present(&output->wlr_output, &present_event);
|
||||
|
||||
wlr_output_send_frame(&output->wlr_output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue