diff -Nru aview-1.3.0/main.c aview-1.3.0-jz/main.c
--- aview-1.3.0/main.c	Wed Apr 25 12:00:06 2001
+++ aview-1.3.0-jz/main.c	Sat Aug 24 23:43:03 2002
@@ -52,6 +52,7 @@
     aa_autoinitkbd(context,0);
     aa_hidecursor(context);
     main_loop();
+    system("xwd -silent -out curframe.xwd -nobdrs -name 'aa for X'");
     aa_close(context);
     return(0);
 }
diff -Nru aview-1.3.0/ui.c aview-1.3.0-jz/ui.c
--- aview-1.3.0/ui.c	Wed Apr 25 12:04:37 2001
+++ aview-1.3.0-jz/ui.c	Sat Aug 24 23:42:17 2002
@@ -204,7 +204,8 @@
 	    resized = 0;
 	}
 	aa_flush(context);
-	c = aa_getevent(context, 1);
+        quit = 1;
+	//c = aa_getevent(context, 1);
 	switch (c) {
 	case 'h':
 	    ui_help();
