mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-07 04:06:14 -05:00
pointer-constraints: sync with surface state flow
This commit is contained in:
parent
d663fb4f63
commit
f1fed4d64c
2 changed files with 75 additions and 27 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"
|
||||
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue