Signed-off-by: Stephen Chandler Paul <[email protected]>
---
src/evdev-tablet.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c
index 52499fd..4efb36c 100644
--- a/src/evdev-tablet.c
+++ b/src/evdev-tablet.c
@@ -85,6 +85,7 @@ tablet_mark_all_axes_changed(struct tablet_dispatch *tablet,
static void
tablet_update_tool(struct tablet_dispatch *tablet,
+ struct evdev_device *device,
enum libinput_tool_type tool,
bool enabled)
{
@@ -95,6 +96,7 @@ tablet_update_tool(struct tablet_dispatch *tablet,
tablet->current_tool_type = tool;
tablet_set_status(tablet, TABLET_TOOL_UPDATED);
}
+ tablet_mark_all_axes_changed(tablet, device);
tablet_unset_status(tablet, TABLET_TOOL_OUT_OF_PROXIMITY);
}
else
@@ -214,7 +216,7 @@ tablet_process_key(struct tablet_dispatch *tablet,
case BTN_TOOL_MOUSE:
case BTN_TOOL_LENS:
/* These codes have an equivalent libinput_tool value */
- tablet_update_tool(tablet, e->code, e->value);
+ tablet_update_tool(tablet, device, e->code, e->value);
break;
case BTN_TOUCH:
if (e->value)
--
1.8.5.5
_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel