diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index b02bf7ab..3ddb5436 100644 --- a/src/evdev-tablet.c +++ b/src/evdev-tablet.c @@ -226,8 +226,9 @@ tablet_update_tool(struct tablet_dispatch *tablet, tablet_set_status(tablet, TABLET_TOOL_ENTERING_PROXIMITY); tablet_unset_status(tablet, TABLET_TOOL_OUT_OF_PROXIMITY); } - else if (!tablet_has_status(tablet, TABLET_TOOL_OUT_OF_PROXIMITY)) + else if (!tablet_has_status(tablet, TABLET_TOOL_OUT_OF_PROXIMITY)) { tablet_set_status(tablet, TABLET_TOOL_LEAVING_PROXIMITY); + } } static inline double