output: defer fake present events until after commit

Since headless and wayland-without-presentation-feedback were firing
present inside their commit impls, present was getting fired before
commit, which is cursed. Defer this with an idle timer so that commit
handlers can run before present handlers.
This commit is contained in:
Rose Hudson 2023-08-26 16:01:46 +01:00 committed by Alexander Orzechowski
parent a1679c92ce
commit 83af3202f9
4 changed files with 44 additions and 2 deletions

View file

@ -21,4 +21,6 @@ bool output_cursor_set_texture(struct wlr_output_cursor *cursor,
int dst_width, int dst_height, enum wl_output_transform transform,
int32_t hotspot_x, int32_t hotspot_y);
void output_defer_present(struct wlr_output *output, struct wlr_output_event_present event);
#endif