]> diplodocus.org Git - xorg-xinput/commitdiff
Property code: If the Atom specified was an Atom, actually use it too.
authorPeter Hutterer <peter.hutterer@redhat.com>
Thu, 7 Aug 2008 08:19:48 +0000 (17:49 +0930)
committerPeter Hutterer <peter.hutterer@redhat.com>
Thu, 7 Aug 2008 08:19:48 +0000 (17:49 +0930)
Don't ignore an atom if it has been specified with it's number instead of the
name.

src/property.c

index 269fecca5d28626c2489c75860fc407ace89f459..7342fc46e8dc5c21deeeac874d967a5456e0b488 100644 (file)
@@ -215,6 +215,8 @@ set_int_prop(Display *dpy, int argc, char** argv, char* n, char *desc)
 
     if (!is_atom)
         prop = XInternAtom(dpy, name, False);
 
     if (!is_atom)
         prop = XInternAtom(dpy, name, False);
+    else
+        prop = atoi(name);
 
     nelements = argc - 3;
     format    = atoi(argv[2]);
 
     nelements = argc - 3;
     format    = atoi(argv[2]);