summaryrefslogtreecommitdiff
path: root/tools/event-gui.c
diff options
context:
space:
mode:
authorJames Ye <jye836@gmail.com>2017-01-20 16:54:13 +1100
committerPeter Hutterer <peter.hutterer@who-t.net>2017-01-26 14:44:04 +1000
commit1f0223e9fd77d9e3d586f0e2420fc1b7a2949a85 (patch)
tree9cb0fbf955e57ea1dd14d658806df16f0b9a0de8 /tools/event-gui.c
parent6ef816b4f5f17ef7d4bb90fca25b26205124fc78 (diff)
Add a "switch" interface for parts of the SW_* range
This will allow switch devices known to libinput to be exposed. Currently, this is SW_LID. libinput also handles switch events internally, e.g. a laptop touchpad will be disabled autmoatically when the lid is closed. This is transparent to the caller, although the caller will also receive the event. See https://bugs.freedesktop.org/show_bug.cgi?id=86223 This features is intended to be the main driver for the interface. Co-Authored-By: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: James Ye <jye836@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/event-gui.c')
-rw-r--r--tools/event-gui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/event-gui.c b/tools/event-gui.c
index e819901..155cc95 100644
--- a/tools/event-gui.c
+++ b/tools/event-gui.c
@@ -845,6 +845,8 @@ handle_event_libinput(GIOChannel *source, GIOCondition condition, gpointer data)
case LIBINPUT_EVENT_TABLET_PAD_RING:
case LIBINPUT_EVENT_TABLET_PAD_STRIP:
break;
+ case LIBINPUT_EVENT_SWITCH_TOGGLE:
+ break;
}
libinput_event_destroy(ev);