diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-08-22 00:11:42 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-08-22 00:11:42 +0200 |
commit | 87fca361f72e5f583002fca4d308152e55b3ad28 (patch) | |
tree | 672778a8e20661ccabfc551550f25bb76382d28d /sys | |
parent | 20b4f55603ffc2c31d30760f86595cf46b75c40b (diff) |
rio: rect outside screen counts as covered wcovered()
Diffstat (limited to 'sys')
-rw-r--r-- | sys/src/cmd/rio/rio.c | 2 |
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) |