mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-01-11 11:08:24 -05:00
output: disallow NULL event for wlr_output_send_present()
This commit is contained in:
parent
1b65a80e9d
commit
1089b7b8d6
3 changed files with 13 additions and 9 deletions
|
|
@ -956,12 +956,7 @@ void wlr_output_schedule_frame(struct wlr_output *output) {
|
|||
|
||||
void wlr_output_send_present(struct wlr_output *output,
|
||||
struct wlr_output_event_present *event) {
|
||||
struct wlr_output_event_present _event = {0};
|
||||
if (event == NULL) {
|
||||
event = &_event;
|
||||
event->commit_seq = output->commit_seq + 1;
|
||||
}
|
||||
|
||||
assert(event);
|
||||
event->output = output;
|
||||
|
||||
struct timespec now;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue