When a user id is specified, or --root, use the ID directly, don't try find a client child of it

This commit is contained in:
Dana Jansens 2010-01-11 13:43:25 -05:00
parent 91af4d5bc9
commit 358056b102

View file

@ -334,9 +334,10 @@ int main(int argc, char **argv)
break; break;
} }
} }
}
id = find_client(d, userid); id = find_client(d, userid);
}
else
id = userid; /* they picked this one */
if (id == None) if (id == None)
return fail("Unable to find window with the requested ID"); return fail("Unable to find window with the requested ID");