mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-03-24 01:34:04 +00:00
Fix build error if HAVE_MTDEV is false
priv->has_touch is conditional on HAVE_MTDEV Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
@@ -410,6 +410,7 @@ event_query_axis_ranges(InputInfoPtr pInfo)
|
||||
&priv->minw, &priv->maxw,
|
||||
NULL, NULL);
|
||||
|
||||
#if HAVE_MTDEV
|
||||
if (priv->has_touch)
|
||||
{
|
||||
int st_minx = priv->minx;
|
||||
@@ -429,6 +430,7 @@ event_query_axis_ranges(InputInfoPtr pInfo)
|
||||
proto_data->st_to_mt_scale_y =
|
||||
(priv->maxy - priv->miny) / (st_maxy - st_miny);
|
||||
}
|
||||
#endif
|
||||
|
||||
SYSCALL(rc = ioctl(pInfo->fd, EVIOCGBIT(EV_KEY, sizeof(keybits)), keybits));
|
||||
if (rc >= 0)
|
||||
|
||||
Reference in New Issue
Block a user