aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-22 11:35:36 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-22 11:35:36 +0000
commit3ddc17937f19b63656ad8d79026e9afa90102ef7 (patch)
tree0e7f09e49ce000bae0cd4b1433d6ad3816dcf0b5 /wayland.h
parentci: sr.ht: run a codespell task at the end (diff)
input: inhibit mouse events to client when a binding has consumed it
This introduces a new state to a seat's mouse struct, 'consumed'. It is set on a mouse *press* event that is claimed by a mouse binding. It is cleared after a mouse *release* event. While set, *no* mouse motion or button events are sent to the client application.
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index 85cc1ca7..7757c970 100644
--- a/wayland.h
+++ b/wayland.h
@@ -178,6 +178,7 @@ struct seat {
int col;
int row;
int button;
+ bool consumed; /* True if a button press was consumed - i.e. if a binding claimed it */
int count;
int last_button;