summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/rio/rio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/cmd/rio/rio.c b/sys/src/cmd/rio/rio.c
index ecd3ae050..2300563a0 100644
--- a/sys/src/cmd/rio/rio.c
+++ b/sys/src/cmd/rio/rio.c
@@ -662,6 +662,8 @@ wcovered(Window *w, Rectangle r, int i)
if(Dx(r) < font->height || Dy(r) < font->height)
return 1;
+ if(!rectclip(&r, screen->r))
+ return 1;
for(; i<nwindow; i++){
t = window[i];
if(t == w || t->topped <= w->topped || t->deleted)