From: Peter Hutterer Date: Thu, 7 Aug 2008 08:19:48 +0000 (+0930) Subject: Property code: If the Atom specified was an Atom, actually use it too. X-Git-Url: https://diplodocus.org/git/xorg-xinput/commitdiff_plain/5d833a190319b64d81293514027cebaaa3f74ffd?hp=6ebdca422d12e3326f9ab59767e05eefd24ff85f Property code: If the Atom specified was an Atom, actually use it too. Don't ignore an atom if it has been specified with it's number instead of the name. --- diff --git a/src/property.c b/src/property.c index 269fecc..7342fc4 100644 --- a/src/property.c +++ b/src/property.c @@ -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); + else + prop = atoi(name); nelements = argc - 3; format = atoi(argv[2]);