lsw

lists window titles of X clients to stdout
git clone git://git.suckless.org/lsw
Log | Files | Refs | README | LICENSE

commit 2f40506caf67563c5ff59f2ef277ae2e2f409f4b
parent 490ecea1bdc260bbe9e91e9cf621c81d89d9e621
Author: Anselm R. Garbe <arg@10kloc.org>
Date:   Tue, 10 Oct 2006 09:13:03 +0200

hotfix
Diffstat:
Mlsw.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lsw.c b/lsw.c @@ -45,12 +45,12 @@ main(int argc, char *argv[]) { Window *wins, d1, d2; XWindowAttributes wa; - if((argc) > 1 && !strncmp(argv[1], "-v", 3)) { + if((argc > 1) && !strncmp(argv[1], "-v", 3)) { fputs("lsw-"VERSION", (C)opyright MMVI Anselm R. Garbe\n", stdout); exit(EXIT_SUCCESS); } if(!(dpy = XOpenDisplay(0))) { - fputs("wtool: cannot open display\n", stderr); + fputs("lsw: cannot open display\n", stderr); exit(EXIT_FAILURE); } root = RootWindow(dpy, DefaultScreen(dpy));