From a98d4831b6e172ad1b68dbf8de2c970c40a39a2f Mon Sep 17 00:00:00 2001 From: Stephen Chandler Paul Date: Mon, 16 Feb 2015 22:48:39 -0500 Subject: [PATCH] tablet: Set the tool as out of proximity by default when we initialize a tablet 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 Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- src/evdev-tablet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index fe09efcf..3d8363cc 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; }