mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
tearing-control-v1: synchronize state with surface
This commit is contained in:
parent
0ea6b6e2cc
commit
1968ada213
2 changed files with 38 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue