summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@rei2.9hal>2011-12-25 03:57:46 +0100
committercinap_lenrek <cinap_lenrek@rei2.9hal>2011-12-25 03:57:46 +0100
commitd56c586f75748b7ffc6ec12866bb9e722df859ab (patch)
tree2779f4867cff4780880ba1d2f0c63377985307db /sys
parent21312484117fbebf8300841684b613a1b3a993fd (diff)
mothra: flushdisplay before reading event
Diffstat (limited to 'sys')
-rw-r--r--sys/src/cmd/mothra/mothra.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c
index a95333682..711feedff 100644
--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -360,6 +360,7 @@ void main(int argc, char *argv[]){
}
}
+ flushimage(display, 1);
unlockdisplay(display);
i=event(&e);
lockdisplay(display);
@@ -740,7 +741,6 @@ void dolink(Panel *p, int buttons, Rtext *word){
}
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 @@ void filter(char *cmd, int fd){
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");