mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
pointer-constraints-v1: use wlr_surface_synced
This commit is contained in:
parent
a6122c3ec5
commit
90e12fb978
2 changed files with 50 additions and 19 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue