summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-01-11 13:43:25 -0500
committerDana Jansens <danakj@orodu.net>2010-01-11 13:43:25 -0500
commit358056b102f633cb63ac7b9aa0cfdd25af77ddf3 (patch)
tree4d46167dec334301bf77388eb59d564b99c8c8b0 /tools
parent91af4d5bc9e04b766735aaa3ac098233ba103959 (diff)
When a user id is specified, or --root, use the ID directly, don't try find a client child of it
Diffstat (limited to 'tools')
-rw-r--r--tools/obxprop/obxprop.c5
1 files 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");