diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2011-03-04 01:00:41 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2011-03-14 12:55:20 +0100 |
| commit | b0ce015a8494bdc48e4d38ddf22b7e5e4c02814a (patch) | |
| tree | 30c1be9c76caf58d51d6829bb8b123d67e03a426 /src/grail-inserter.h | |
| parent | 1985003a9541c20f9a7139bab499d2259e70ed4f (diff) | |
Make grabbing client exclusive
When a possible gesture is started for a global client (sysflag set),
it is desirable that gestures to other clients are disregarded until
all contacts have left the surface. In principle this could be refined
further, such that if gesture are not detected, they are passed on to
other clients, but that also affects how touches are passed onto lower
layers like XI2.1, so simply making sure a global system client gets
all events potentially leading to gestures is good enough for now.
Also note that in the current combination of synaptics/evdev X servers
and grail, there can be no overlapping potential gestures between two
global clients, or the resulting event recipient is not correct.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/grail-inserter.h')
| -rw-r--r-- | src/grail-inserter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/grail-inserter.h b/src/grail-inserter.h index 3b8cd77..fb944dd 100644 --- a/src/grail-inserter.h +++ b/src/grail-inserter.h | |||
| @@ -53,6 +53,8 @@ struct gesture_inserter { | |||
| 53 | grail_mask_t used[DIM_INSTANCE_BYTES]; | 53 | grail_mask_t used[DIM_INSTANCE_BYTES]; |
| 54 | grail_time_t time; | 54 | grail_time_t time; |
| 55 | int gestureid; | 55 | int gestureid; |
| 56 | int grab_active; | ||
| 57 | int grab_client; | ||
| 56 | float scale_x, scale_y, scale_r; | 58 | float scale_x, scale_y, scale_r; |
| 57 | float trans_x, trans_y; | 59 | float trans_x, trans_y; |
| 58 | }; | 60 | }; |
