tearing-control-v1: synchronize state with surface

This commit is contained in:
Simon Ser 2023-12-08 14:22:19 +01:00
parent 0ea6b6e2cc
commit 1968ada213
2 changed files with 38 additions and 9 deletions

View file

@ -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 {