From 5952aa6b501bf9b5c17e6eb0af4ccd367b458b2c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 30 Nov 2015 13:47:08 +1000 Subject: [PATCH] tablet: break up a condition to improve readability Signed-off-by: Peter Hutterer --- src/evdev-tablet.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index af4ee95c..51f69e06 100644 --- a/src/evdev-tablet.c +++ b/src/evdev-tablet.c @@ -410,8 +410,12 @@ tablet_check_notify_axes(struct tablet_dispatch *tablet, } else { enum libinput_tablet_tool_tip_state tip_state; - tip_state = tablet_has_status(tablet, TABLET_TOOL_IN_CONTACT) ? - LIBINPUT_TABLET_TOOL_TIP_DOWN : LIBINPUT_TABLET_TOOL_TIP_UP; + if (tablet_has_status(tablet, + TABLET_TOOL_IN_CONTACT)) + tip_state = LIBINPUT_TABLET_TOOL_TIP_DOWN; + else + tip_state = LIBINPUT_TABLET_TOOL_TIP_UP; + tablet_notify_axis(base, time, tool,