From a8aeadeab2820e670316ddae3e0da0d6815dd253 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 2 Feb 2024 13:22:31 +0100 Subject: [PATCH] switch: add docs --- include/wlr/types/wlr_switch.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/wlr/types/wlr_switch.h b/include/wlr/types/wlr_switch.h index b560f0baa..641df1991 100644 --- a/include/wlr/types/wlr_switch.h +++ b/include/wlr/types/wlr_switch.h @@ -15,13 +15,19 @@ struct wlr_switch_impl; +/** + * A switch input device. Typically a switch input device can indicate whether + * a laptop lid is opened or closed, or whether tablet mode is enabled. + * + * See https://wayland.freedesktop.org/libinput/doc/latest/switches.html + */ struct wlr_switch { struct wlr_input_device base; const struct wlr_switch_impl *impl; struct { - struct wl_signal toggle; + struct wl_signal toggle; // struct wlr_switch_toggle_event } events; void *data;