diff options
author | Rose Hudson <rose@krx.sh> | 2023-08-26 16:01:46 +0100 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-10-02 12:34:06 +0000 |
commit | 83af3202f94fa49822039f051070be1491854c24 (patch) | |
tree | 49548c6845e628cdf7ab620fce8b96f29f23b8c6 /include | |
parent | a1679c92ce77185843050d6633b4d55e425211d7 (diff) |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/types/wlr_output.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |