diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-01-11 13:43:25 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-01-11 13:43:25 -0500 |
| commit | 358056b102f633cb63ac7b9aa0cfdd25af77ddf3 (patch) | |
| tree | 4d46167dec334301bf77388eb59d564b99c8c8b0 | |
| parent | 91af4d5bc9e04b766735aaa3ac098233ba103959 (diff) | |
When a user id is specified, or --root, use the ID directly, don't try find a client child of it
| -rw-r--r-- | tools/obxprop/obxprop.c | 5 |
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"); |
