pointer-constraints: sync with surface state flow

This commit is contained in:
Kirill Primak 2022-02-04 16:25:01 +03:00
parent d663fb4f63
commit f1fed4d64c
2 changed files with 75 additions and 27 deletions

View file

@ -12,6 +12,7 @@
#include <stdint.h>
#include <wayland-server-core.h>
#include <pixman.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_seat.h>
#include "pointer-constraints-unstable-v1-protocol.h"
@ -35,6 +36,8 @@ struct wlr_pointer_constraint_v1_state {
struct {
double x, y;
} cursor_hint;
struct wlr_surface_synced_state synced_state;
};
struct wlr_pointer_constraint_v1 {
@ -50,11 +53,12 @@ struct wlr_pointer_constraint_v1 {
struct wlr_pointer_constraint_v1_state current, pending;
struct wl_listener surface_commit;
struct wl_listener surface_destroy;
struct wl_listener seat_destroy;
struct wl_list link; // wlr_pointer_constraints_v1::constraints
struct wlr_surface_synced synced;
struct {
/**
* Called when a pointer constraint's region is updated,