mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 00:00:14 +01:00
tablet: break up a condition to improve readability
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
be520bf6e0
commit
5952aa6b50
1 changed files with 6 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue