summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wcmCommon.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/wcmCommon.c b/src/wcmCommon.c
index c81310f..df71842 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -1323,7 +1323,7 @@ int wcmInitTablet(InputInfoPtr pInfo, const char* id, float version)
return !Success;
/* Default threshold value if not set */
- if (common->wcmThreshold <= 0)
+ if (common->wcmThreshold <= 0 && IsPen(priv))
{
/* Threshold for counting pressure as a button */
common->wcmThreshold = DEFAULT_THRESHOLD;
@@ -1333,19 +1333,17 @@ int wcmInitTablet(InputInfoPtr pInfo, const char* id, float version)
}
/* output tablet state as probed */
- if (TabletHasFeature(common, WCM_PEN))
- xf86Msg(X_PROBED, "%s: Wacom %s tablet maxX=%d maxY=%d maxZ=%d "
+ if (IsPen(priv))
+ xf86Msg(X_PROBED, "%s: maxX=%d maxY=%d maxZ=%d "
"resX=%d resY=%d tilt=%s\n",
pInfo->name,
- model->name,
common->wcmMaxX, common->wcmMaxY, common->wcmMaxZ,
common->wcmResolX, common->wcmResolY,
HANDLE_TILT(common) ? "enabled" : "disabled");
- else
- xf86Msg(X_PROBED, "%s: Wacom %s tablet maxX=%d maxY=%d maxZ=%d "
+ else if (IsTouch(priv))
+ xf86Msg(X_PROBED, "%s: maxX=%d maxY=%d maxZ=%d "
"resX=%d resY=%d \n",
pInfo->name,
- model->name,
common->wcmMaxTouchX, common->wcmMaxTouchY,
common->wcmMaxZ,
common->wcmTouchResolX, common->wcmTouchResolY);