git: 9front

Download patch

ref: 9fc0c01843cb9e154f1565c9fa368c0dd0bae7a8
parent: e71e536fab7399969d239d8e96dc8de50007d715
parent: 0a698326b540f478c1c05b304236f3f7a41ed661
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Sun Dec 25 19:46:38 EST 2011

merge

--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -360,6 +360,7 @@
 			}
 		}
 
+		flushimage(display, 1);
 		unlockdisplay(display);
 		i=event(&e);
 		lockdisplay(display);
@@ -740,7 +741,6 @@
 }
 
 void filter(char *cmd, int fd){
-	flushimage(display, 1);
 	switch(rfork(RFFDG|RFPROC|RFMEM|RFNOWAIT)){
 	case -1:
 		message("Can't fork!");
@@ -755,7 +755,6 @@
 	close(fd);
 }
 void gettext(Www *w, int fd, int type){
-	flushimage(display, 1);
 	switch(rfork(RFFDG|RFPROC|RFMEM|RFNOWAIT)){
 	case -1:
 		message("Can't fork, please wait");
--