pointer-constraints-v1: use wlr_surface_synced

This commit is contained in:
Simon Ser 2023-12-08 13:58:44 +01:00
parent a6122c3ec5
commit 90e12fb978
2 changed files with 50 additions and 19 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"
@ -50,10 +51,6 @@ 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 {
@ -66,6 +63,14 @@ struct wlr_pointer_constraint_v1 {
} events;
void *data;
// private state
struct wl_listener surface_commit;
struct wl_listener surface_destroy;
struct wl_listener seat_destroy;
struct wlr_surface_synced synced;
};
struct wlr_pointer_constraints_v1 {