]> diplodocus.org Git - xorg-xinput/blobdiff - src/property.c
xinput 1.5.2
[xorg-xinput] / src / property.c
index 6cd8e7af19a2da0e036be4c652784c3993fb552b..f8b21c7f4ced650fcd89307033cb3ed1476a9601 100644 (file)
@@ -461,10 +461,10 @@ print_property_xi2(Display *dpy, int deviceid, Atom property)
                     break;
                 case XA_ATOM:
                     {
-                        Atom a = *(Atom*)ptr;
-                        printf("\"%s\" (%d)",
+                        Atom a = *(uint32_t*)ptr;
+                        printf("\"%s\" (%ld)",
                                 (a) ? XGetAtomName(dpy, a) : "None",
-                                (int)a);
+                                a);
                         break;
                     }
                     break;