synclient: don't print "missing" if a property doesn't exist.

Virtually all touchpads still in use have one or more properties missing
anyway. If it's not in the list, then it's missing.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2010-08-17 11:34:32 +10:00
parent abb448a253
commit 7acdbb7cf9

View File

@@ -496,11 +496,8 @@ dp_show_settings(Display *dpy, XDevice *dev)
for (j = 0; params[j].name; j++) {
struct Parameter *par = &params[j];
a = XInternAtom(dpy, par->prop_name, True);
if (!a) {
fprintf(stderr, " %-23s = missing\n",
par->name);
if (!a)
continue;
}
len = 1 + ((par->prop_offset * (par->prop_format ? par->prop_format : 32)/8))/4;