list-props allows for multiple devices to be queried simultaneously, so we
don't break out of the loop but rather change the exit code if at least one of
the devices doesn't exist.
X.Org Bug 90226 <http://bugs.freedesktop.org/show_bug.cgi?id=90226>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
int i;
int nprops;
Atom *props;
int i;
int nprops;
Atom *props;
if (!info)
{
fprintf(stderr, "unable to find device '%s'\n", argv[i]);
if (!info)
{
fprintf(stderr, "unable to find device '%s'\n", argv[i]);
if (!dev)
{
fprintf(stderr, "unable to open device '%s'\n", info->name);
if (!dev)
{
fprintf(stderr, "unable to open device '%s'\n", info->name);
XFree(props);
XCloseDevice(dpy, dev);
}
XFree(props);
XCloseDevice(dpy, dev);
}
int i;
int nprops;
Atom *props;
int i;
int nprops;
Atom *props;
if (!info)
{
fprintf(stderr, "unable to find device %s\n", argv[i]);
if (!info)
{
fprintf(stderr, "unable to find device %s\n", argv[i]);