summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");