diff options
author | rsc <devnull@localhost> | 2006-02-26 04:05:16 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-02-26 04:05:16 +0000 |
commit | eb0e8f26c4e6a3b4a4780132f2270efa530ad816 (patch) | |
tree | 4f018fc97c7f6b0ac2eac61b0e3a7da3f3863025 /src/cmd/faces | |
parent | e269d00c9ea2764885ba69aa08fe7b04f27179ec (diff) | |
download | plan9port-eb0e8f26c4e6a3b4a4780132f2270efa530ad816.tar.gz plan9port-eb0e8f26c4e6a3b4a4780132f2270efa530ad816.tar.bz2 plan9port-eb0e8f26c4e6a3b4a4780132f2270efa530ad816.zip |
locking fixes
Diffstat (limited to 'src/cmd/faces')
-rw-r--r-- | src/cmd/faces/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/faces/main.c b/src/cmd/faces/main.c index c1fbecf5..2563a243 100644 --- a/src/cmd/faces/main.c +++ b/src/cmd/faces/main.c @@ -330,7 +330,6 @@ addface(Face *f) /* always adds at 0 */ if(f == nil) return; - lockdisplay(display); if(first != 0){ first = 0; eresized(0); @@ -340,6 +339,7 @@ addface(Face *f) /* always adds at 0 */ nx = nacross; ny = (nfaces+(nx-1)) / nx; + lockdisplay(display); for(y=ny; y>=0; y--){ /* move them along */ r0 = facerect(y*nx+0); @@ -613,8 +613,11 @@ click(int button, Mouse *m) for(i=first; i<last; i++) /* clear vwhois faces */ if(ptinrect(p, facerect(i-first)) && strstr(faces[i]->str[Sshow], "/XXXvwhois")){ + lockdisplay(display); delface(i); flushimage(display, 1); + unlockdisplay(display); + break; } } break; |