commit 4d98d964ba18e713967c9f1e046540b254071da8
parent 4efebb8fc4bac764538151abdc6b56a3068e477a
Author: Connor Lane Smith <cls@lubutu.com>
Date: Sat, 18 Jun 2011 04:54:53 +0100
cleanup
Diffstat:
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/README b/README
@@ -1,6 +1,6 @@
-lsw - list window titles
-========================
-Prints all window titles of DISPLAY to standard output.
+lsw - list windows
+==================
+lsw prints the title and XID of windows to stdout.
Requirements
diff --git a/lsw.1 b/lsw.1
@@ -1,9 +1,9 @@
.TH LSW 1 lsw\-VERSION
.SH NAME
-lsw \- list window titles
+lsw \- list windows
.SH SYNOPSIS
.B lsw
-.RI [ windows ...]
+.RI [ window ...]
.SH DESCRIPTION
.B lsw
prints the title and XID of each child of each
diff --git a/lsw.c b/lsw.c
@@ -2,7 +2,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
@@ -17,7 +16,7 @@ main(int argc, char *argv[]) {
int i;
if(!(dpy = XOpenDisplay(NULL))) {
- fputs("lsw: cannot open display\n", stderr);
+ fprintf(stderr, "%s: cannot open display\n", argv[0]);
exit(EXIT_FAILURE);
}
netwmname = XInternAtom(dpy, "_NET_WM_NAME", False);