When a user id is specified, or --root, use the ID directly, don't try find a client...
authorDana Jansens <danakj@orodu.net>
Mon, 11 Jan 2010 18:43:25 +0000 (13:43 -0500)
committerDana Jansens <danakj@orodu.net>
Mon, 11 Jan 2010 18:43:25 +0000 (13:43 -0500)
tools/obxprop/obxprop.c

index 2e6b2a0..44b3304 100644 (file)
@@ -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");