diff options
| author | emersion <contact@emersion.fr> | 2018-09-26 23:08:52 +0200 | 
|---|---|---|
| committer | emersion <contact@emersion.fr> | 2018-09-26 23:08:52 +0200 | 
| commit | 31cc2fa4f9eae8f6c884b35c500aef4225b3f9ef (patch) | |
| tree | 868a70a89ace3db7fa0c8de7cee82ab62d5ad23a /include/wlr | |
| parent | c89cd4945be9a719ef8d0ff3fbd1736b573f92bc (diff) | |
| download | wlroots-31cc2fa4f9eae8f6c884b35c500aef4225b3f9ef.tar.xz | |
pointer-constraints: make region not a pointer, add committed bitfield
Diffstat (limited to 'include/wlr')
| -rw-r--r-- | include/wlr/types/wlr_pointer_constraints_v1.h | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_pointer_constraints_v1.h b/include/wlr/types/wlr_pointer_constraints_v1.h index 8a73efcc..6fdae9c4 100644 --- a/include/wlr/types/wlr_pointer_constraints_v1.h +++ b/include/wlr/types/wlr_pointer_constraints_v1.h @@ -15,13 +15,18 @@ enum wlr_pointer_constraint_v1_type {  	WLR_POINTER_CONSTRAINT_V1_CONFINED,  }; +enum wlr_pointer_constraint_v1_state_field { +	WLR_POINTER_CONSTRAINT_V1_STATE_REGION = 1 << 0, +	WLR_POINTER_CONSTRAINT_V1_STATE_CURSOR_HINT = 1 << 1, +}; +  struct wlr_pointer_constraint_v1_state { -	pixman_region32_t *region; +	uint32_t committed; // enum wlr_pointer_constraint_v1_state_field +	pixman_region32_t region;  	// only valid for locked_pointer  	struct {  		double x, y; -		bool valid;  	} cursor_hint;  };  | 
