]> Dogcows Code - chaz/openbox/commitdiff
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 2e6b2a03f7e84903ea8212e9853816f884ea9bae..44b33041a99e4e04858517e128989bb5a25398de 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");
This page took 0.02255 seconds and 4 git commands to generate.