aboutsummaryrefslogtreecommitdiff
path: root/include/rootston/seat.h
diff options
context:
space:
mode:
authorRyan Walklin <ryan@testtoast.com>2018-11-14 23:24:55 +0000
committerRyan Walklin <ryan@crackotage.local>2018-12-15 14:42:35 +1100
commit2a3c62b4d28ec7a69473e9c18c42f1ed26c74bbf (patch)
tree6284dc156f6edee6f22e8e5c97430da5f464c27c /include/rootston/seat.h
parent8a56b96c5516ee089b7561949aac4f83e5b94808 (diff)
[WIP][DONTMERGE]Add support for libinput_switch input devices
These are used primarily by laptops to signal the state of the lid (open/closed) and tablet mode if supported, based on ACPI events.
Diffstat (limited to 'include/rootston/seat.h')
-rw-r--r--include/rootston/seat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/rootston/seat.h b/include/rootston/seat.h
index 0187c6cc..7e6b63bf 100644
--- a/include/rootston/seat.h
+++ b/include/rootston/seat.h
@@ -32,6 +32,7 @@ struct roots_seat {
struct wl_list keyboards;
struct wl_list pointers;
+ struct wl_list switches;
struct wl_list touch;
struct wl_list tablets;
struct wl_list tablet_pads;
@@ -74,6 +75,15 @@ struct roots_pointer {
struct wl_list link;
};
+struct roots_switch {
+ struct roots_seat *seat;
+ struct wlr_input_device *device;
+ struct wl_listener device_destroy;
+
+ struct wl_listener toggle;
+ struct wl_list link;
+};
+
struct roots_touch {
struct roots_seat *seat;
struct wlr_input_device *device;