diff options
Diffstat (limited to 'apps/xwininfo/xwininfo.c')
-rw-r--r-- | apps/xwininfo/xwininfo.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/xwininfo/xwininfo.c b/apps/xwininfo/xwininfo.c index 838408ab3..e5d70bcfb 100644 --- a/apps/xwininfo/xwininfo.c +++ b/apps/xwininfo/xwininfo.c @@ -56,6 +56,7 @@ of the copyright holder. #endif #include <stdio.h> #include <stdlib.h> +#include <unistd.h> /* Include routines to handle parsing defaults */ #include "dsimple.h" @@ -303,6 +304,7 @@ main(int argc, char **argv) register int i; int tree = 0, stats = 0, bits = 0, events = 0, wm = 0, size = 0, shape = 0; int frame = 0, children = 0; + int pauseatend = 0; Window window; INIT_NAME; @@ -378,6 +380,10 @@ main(int argc, char **argv) tree = stats = bits = events = wm = size = shape = 1; continue; } + if (!strcmp(argv[i], "-pause")) { + pauseatend = 1; + continue; + } usage(); } @@ -428,6 +434,7 @@ main(int argc, char **argv) if (shape) Display_Window_Shape(window); printf("\n"); + if (pauseatend) getchar(); exit(0); } |