From 358056b102f633cb63ac7b9aa0cfdd25af77ddf3 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 11 Jan 2010 13:43:25 -0500 Subject: [PATCH] When a user id is specified, or --root, use the ID directly, don't try find a client child of it --- tools/obxprop/obxprop.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/obxprop/obxprop.c b/tools/obxprop/obxprop.c index 2e6b2a03..44b33041 100644 --- a/tools/obxprop/obxprop.c +++ b/tools/obxprop/obxprop.c @@ -334,9 +334,10 @@ int main(int argc, char **argv) break; } } + id = find_client(d, userid); } - - id = find_client(d, userid); + else + id = userid; /* they picked this one */ if (id == None) return fail("Unable to find window with the requested ID"); -- 2.45.2