[PATCH libinput 1/8] tablet: Set the tool as out of proximity by default when we initialize a tablet

Stephen Chandler Paul thatslyude at gmail.com
Mon Feb 16 19:48:39 PST 2015


We should be able to set the tablet to left-handed mode immediately when it's
connected to the system. Since left-handed mode won't activate until the tool is
out of proximity however, we have to make sure that upon initially connecting
the tablet, we set the tool to be out of proximity (it may as well be anyway,
since we haven't processed any proximity in events from evdev just yet)

Signed-off-by: Stephen Chandler Paul <thatslyude at gmail.com>
---
 src/evdev-tablet.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c
index fe09efc..3d8363c 100644
--- a/src/evdev-tablet.c
+++ b/src/evdev-tablet.c
@@ -566,6 +566,8 @@ tablet_init(struct tablet_dispatch *tablet,
 
 	tablet_mark_all_axes_changed(tablet, device);
 
+	tablet_set_status(tablet, TABLET_TOOL_OUT_OF_PROXIMITY);
+
 	return 0;
 }
 
-- 
1.9.5



More information about the wayland-devel mailing list