diff options
author | Simon Ser <contact@emersion.fr> | 2023-12-08 14:22:19 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-12-25 18:55:30 +0100 |
commit | 1968ada2132237f5bf8e40b6bf903fbce76c0b40 (patch) | |
tree | 4f89bb47cbe00f0ec0197a486def8a07f84f345c /include/wlr | |
parent | 0ea6b6e2cc490f3fbd0b92b03c0ae6eed2c0bbbf (diff) |
tearing-control-v1: synchronize state with surface
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_tearing_control_v1.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_tearing_control_v1.h b/include/wlr/types/wlr_tearing_control_v1.h index 31cc5bef..76c5c600 100644 --- a/include/wlr/types/wlr_tearing_control_v1.h +++ b/include/wlr/types/wlr_tearing_control_v1.h @@ -17,11 +17,12 @@ #include "tearing-control-v1-protocol.h" struct wlr_tearing_control_v1 { - uint32_t hint; struct wl_client *client; struct wl_list link; struct wl_resource *resource; + enum wp_tearing_control_v1_presentation_hint current, pending; + struct { struct wl_signal set_hint; struct wl_signal destroy; @@ -29,7 +30,13 @@ struct wlr_tearing_control_v1 { struct wlr_surface *surface; + // private state + + enum wp_tearing_control_v1_presentation_hint previous; struct wlr_addon addon; + struct wlr_surface_synced synced; + + struct wl_listener surface_commit; }; struct wlr_tearing_control_manager_v1 { |