summaryrefslogtreecommitdiff
path: root/sys/src/cmd/paint.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/src/cmd/paint.c')
-rw-r--r--sys/src/cmd/paint.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/src/cmd/paint.c b/sys/src/cmd/paint.c
index d3b8396d9..a24a70fbe 100644
--- a/sys/src/cmd/paint.c
+++ b/sys/src/cmd/paint.c
@@ -609,6 +609,9 @@ main(int argc, char *argv[])
save(canvas->r, 1);
floodfill(p, img);
update(nil);
+ /* wait for mouse release */
+ while(event(&e) == Emouse && (e.mouse.buttons & 7) != 0)
+ ;
break;
}
r = Rect(p.x-brush, p.y-brush, p.x+brush+1, p.y+brush+1);