mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 10:29:49 +01:00
output: set wlr_output.commit_seq before firing the commit event
This allows listeners to read the commit sequence number.
This commit is contained in:
parent
d0479cc2bc
commit
2d9661f189
1 changed files with 2 additions and 1 deletions
|
@ -495,13 +495,14 @@ bool wlr_output_commit(struct wlr_output *output) {
|
||||||
wlr_surface_send_frame_done(cursor->surface, &now);
|
wlr_surface_send_frame_done(cursor->surface, &now);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
output->commit_seq++;
|
||||||
|
|
||||||
wlr_signal_emit_safe(&output->events.commit, output);
|
wlr_signal_emit_safe(&output->events.commit, output);
|
||||||
|
|
||||||
output->frame_pending = true;
|
output->frame_pending = true;
|
||||||
output->needs_frame = false;
|
output->needs_frame = false;
|
||||||
output_state_clear(&output->pending);
|
output_state_clear(&output->pending);
|
||||||
pixman_region32_clear(&output->damage);
|
pixman_region32_clear(&output->damage);
|
||||||
output->commit_seq++;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue