aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-08-14 19:39:33 +0200
committerAlexander Orzechowski <alex@ozal.ski>2023-08-23 15:42:22 +0000
commite5fc8cd4c734717c471567de98a77e2482a7015f (patch)
tree6f7e10a98dac1f207066a96e75e8a7d3fb95c948 /include/wlr
parent462f04db9e70c683a421aa015c1689fff8206781 (diff)
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
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output.h3
1 files changed, 2 insertions, 1 deletions
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