From e5fc8cd4c734717c471567de98a77e2482a7015f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 14 Aug 2023 19:39:33 +0200 Subject: output: trigger frame/present events on all commits on enabled output Up until now, frame/present events were only triggered when the user submitted a buffer. Change the wlr_output API so that these events are triggered when any commit is applied on an enabled output. Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3708 --- include/wlr/types/wlr_output.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index a71bf9ca..30331fba 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -170,7 +170,8 @@ struct wlr_output { struct wl_signal precommit; // struct wlr_output_event_precommit // Emitted right after commit struct wl_signal commit; // struct wlr_output_event_commit - // Emitted right after the buffer has been presented to the user + // Emitted right after a commit has been presented to the user for + // enabled outputs struct wl_signal present; // struct wlr_output_event_present // Emitted after a client bound the wl_output global struct wl_signal bind; // struct wlr_output_event_bind -- cgit v1.2.3