aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index ac61c6ff..16678496 100644
--- a/wayland.h
+++ b/wayland.h
@@ -202,6 +202,18 @@ struct seat {
int col;
int row;
int button;
+
+ /*
+ * Button to send in motion events to the client. This is
+ * always the *first* button pressed on the grid. If multiple
+ * buttons are pressed, the first button is still the one used
+ * in motion events.
+ *
+ * A non-zero value of this *also* indicates that the client
+ * should receive events even if the pointer is outside the
+ * grid.
+ */
+ int button_for_motion_events;
bool consumed; /* True if a button press was consumed - i.e. if a binding claimed it */
int count;