summaryrefslogtreecommitdiff
path: root/option.c
diff options
context:
space:
mode:
Diffstat (limited to 'option.c')
-rw-r--r--option.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/option.c b/option.c
index 44de87d..7e16ca6 100644
--- a/option.c
+++ b/option.c
@@ -49,10 +49,10 @@ reloadReportersForWiimote (CompDisplay *d,
(cWiimoteNumber->nValue != cYArgument->nValue) ||
(cWiimoteNumber->nValue != cZArgument->nValue) ||
(cWiimoteNumber->nValue != cDataType->nValue) ||
- (cWiimoteNumber->nValue != cReportSensitivity->nValue))
+ (cWiimoteNumber->nValue != cReportSensitivity->nValue - 1))
{
compLogMessage ("wiimote", CompLogLevelError,
- "Options are not set correctly. Please revisit them and make sure each option in the list is set\n");
+ "Options (reporters) are not set correctly. Please revisit them and make sure each option in the list is set\n");
return;
}
@@ -117,10 +117,11 @@ reloadGesturesForWiimote (CompDisplay *d,
if ((cWiimoteNumber->nValue != cGestureType->nValue) ||
(cWiimoteNumber->nValue != cPluginName->nValue) ||
- (cWiimoteNumber->nValue != cGestureSensitivity->nValue) ||
+ (cWiimoteNumber->nValue != cGestureSensitivity->nValue - 1) ||
(cWiimoteNumber->nValue != cActionName->nValue))
{
- /* Options have not been set correctly */
+ compLogMessage ("wiimote", CompLogLevelError,
+ "Options (gestures) are not set correctly. Please revisit them and make sure each option in the list is set\n");
return;
}
@@ -174,7 +175,8 @@ reloadOptionsForWiimote (CompDisplay *d,
(cXCal->nValue != cXAdj->nValue) ||
(cXCal->nValue != cYAdj->nValue))
{
- /* Options have not been set correctly */
+ compLogMessage ("wiimote", CompLogLevelError,
+ "Options (general) are not set correctly. Please revisit them and make sure each option in the list is set\n");
return;
}