From 83af3202f94fa49822039f051070be1491854c24 Mon Sep 17 00:00:00 2001 From: Rose Hudson Date: Sat, 26 Aug 2023 16:01:46 +0100 Subject: 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. --- include/types/wlr_output.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/types/wlr_output.h b/include/types/wlr_output.h index b885fd08..e1aea1be 100644 --- a/include/types/wlr_output.h +++ b/include/types/wlr_output.h @@ -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 -- cgit v1.2.3