diff options
Diffstat (limited to 'src/cmd/acme/wind.c')
| -rw-r--r-- | src/cmd/acme/wind.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cmd/acme/wind.c b/src/cmd/acme/wind.c index 06a815e9..90c44070 100644 --- a/src/cmd/acme/wind.c +++ b/src/cmd/acme/wind.c @@ -26,6 +26,8 @@ wininit(Window *w, Window *clone, Rectangle r) w->body.w = w; w->id = ++winid; incref(&w->ref); + if(globalincref) + incref(&w->ref); w->ctlfid = ~0; w->utflastqid = -1; r1 = r; @@ -141,7 +143,7 @@ winlock(Window *w, int owner) int i; File *f; -fprint(2, "winlock %p %d %lux\n", w, owner, getcallerpc(&w)); +//fprint(2, "winlock %p %d %lux\n", w, owner, getcallerpc(&w)); f = w->body.file; for(i=0; i<f->ntext; i++) winlock1(f->text[i]->w, owner); @@ -153,7 +155,7 @@ winunlock(Window *w) int i; File *f; -fprint(2, "winunlock %p %lux\n", w, getcallerpc(&w)); +//fprint(2, "winunlock %p %lux\n", w, getcallerpc(&w)); f = w->body.file; for(i=0; i<f->ntext; i++){ w = f->text[i]->w; |
