wmutils

X windows manipulation utilities
git clone git://z3bra.org/wmutils
Log | Files | Refs | LICENSE

commit 3a7bda6f61e31d761bb96d65cc77780214adf547
parent ee04273ec984b68711883faed2fbfae440d30de2
Author: z3bra <willy@mailoo.org>
Date:   Tue Dec 23 16:49:12 2014

Fixed args testing in wmp

Diffstat:
 wmp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/wmp.c b/wmp.c @@ -39,6 +39,9 @@ main(int argc, char **argv) char *argv0; int mode = ABSOLUTE; + if (argc != 2) + usage(argv[0]); + ARGBEGIN { case 'a': mode = ABSOLUTE; break; @@ -47,9 +50,6 @@ main(int argc, char **argv) default : usage(argv0); } ARGEND; - if (argc != 2) - usage(argv0); - init_xcb(&conn); get_screen(conn, &scr);