summaryrefslogtreecommitdiff
path: root/tools/synclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/synclient.c')
-rw-r--r--tools/synclient.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/synclient.c b/tools/synclient.c
index 76610ce..8d1e8f4 100644
--- a/tools/synclient.c
+++ b/tools/synclient.c
@@ -446,7 +446,8 @@ dp_set_variables(Display *dpy, XDevice* dev, int argc, char *argv[], int first_c
b[par->prop_offset] = rint(val);
break;
case 32:
- if (format != par->prop_format || type != XA_INTEGER) {
+ if (format != par->prop_format ||
+ (type != XA_INTEGER && type != XA_CARDINAL)) {
fprintf(stderr, " %-23s = format mismatch (%d)\n",
par->name, format);
break;
@@ -517,7 +518,8 @@ dp_show_settings(Display *dpy, XDevice *dev)
printf(" %-23s = %d\n", par->name, b[par->prop_offset]);
break;
case 32:
- if (format != par->prop_format || type != XA_INTEGER) {
+ if (format != par->prop_format ||
+ (type != XA_INTEGER && type != XA_CARDINAL)) {
fprintf(stderr, " %-23s = format mismatch (%d)\n",
par->name, format);
break;